com.fac: Factor combiner thingy

Description Usage Arguments Author(s) Examples

View source: R/MTfuncs_all.R

Description

Combines vectors of factors so you don't have to deal with specifying the levels

Usage

1
com.fac(a, b, c = NULL, d = NULL, e = NULL, f = NULL)

Arguments

a

Input vector

b

Input vector

c

Input vector

d

Input vector

e

Input vector

f

Input vector

Author(s)

Matt Tyers

Examples

1
2
3
4
a <- as.factor(c("Apples","Bananas","Apples","Bananas"))
b <- as.factor(c("Cucumbers","Bananas","Cucumbers","Durians"))
c <- com.fac(a,b)
summary(c)

mbtyers/MTfuncs documentation built on May 22, 2017, 12:16 a.m.