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)

ylin00/gen5helper documentation built on June 21, 2020, 2:10 a.m.