powered by
Cast an object to match class of another object
as.is(x, vec)
object to transform
object to extract class
# NOT RUN { as.is(c("1", "2", "3"), 1:3) # }
Run the code above in your browser using DataLab