as.all {prada} | R Documentation |
Coercion without introduction of NAs
as.all(x, what)
x |
an object. |
what |
character of length 1. |
The function calls
do.call(paste("as.", what, sep=""), list(x))
,
and checks whether any NAs
were introduced.
A vector of type what
Wolfgang Huber http://www.dkfz.de/abt0840/whuber
as.all(runif(5)*10, "integer")