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

Description Usage Arguments Examples

View source: R/helper.r

Description

Cast an object to match class of another object

Usage

1
as.is(x, vec)

Arguments

x

object to transform

vec

object to extract class

Examples

1
as.is(c("1", "2", "3"), 1:3)

gen5helper documentation built on March 26, 2020, 7:17 p.m.