powered by
Change into a chosen type
as(x, type)
object to be coerced
type to be coerced into
The "type" parameter takes one of the three values: "integer", "double" or "character".
the same objected with changed type
# NOT RUN { as(1:3, "character") # }
Run the code above in your browser using DataLab