Learn R Programming

gen5helper (version 1.0.1)

as.is: Cast an object to match class of another object

Description

Cast an object to match class of another object

Usage

as.is(x, vec)

Arguments

x

object to transform

vec

object to extract class

Examples

Run this code
# NOT RUN {
as.is(c("1", "2", "3"), 1:3)

# }

Run the code above in your browser using DataLab