fbind: Bind two factors

Description Usage Arguments Value Examples

View source: R/fbind.R

Description

create a new factor from existing factors, where the new factors's levels are a union of the levels of the input factors

Usage

1
fbind(a, b)

Arguments

a

factor

b

factor

Value

factor

Examples

1
2
# uses fbind on the factors of the inbuilt iris and PlantGrowth datasets
fbind(iris$Species[c(1, 51, 101)], PlantGrowth$group[c(1, 11, 21)])

3mmaRand/foofactors documentation built on Nov. 11, 2019, 12:11 a.m.