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