rsa.convertVecType: Convert vector data type

Description Usage Arguments Value Examples

Description

Convert vector data type

Usage

1
rsa.convertVecType(vec1, vec2)

Arguments

vec1,

first vector with type we want to match

vec2,

second vector with type we'd like to transform

Value

vec2 with type matched to vec1

Examples

1
2
3
4
5
v1 <- as.factor(c("one", "two", "three"))
v2 <- c("one", "two", "three")
v3 <- c("1", "2", "3")
rsa.convertVecType(v1, v2)
rsa.convertVecType(v1, v3)

benpeloquin7/rrrsa documentation built on May 12, 2019, 2:08 p.m.