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)

yanxianUCSB/gen5helper documentation built on June 22, 2020, 3:35 a.m.