powered by
as.all(x, what)
what
do.call(paste("as.", what, sep=""), list(x))
NAs
as
as.all(runif(5)*10, "integer")
Run the code above in your browser using DataLab