update_levels: Standardize levels of factor variables.

Description Usage Arguments Value Examples

Description

Standardize levels of factor variables.

Usage

1
update_levels(data, levels_union)

Arguments

data

Dataset to standardize

levels_union

Named list. Names should be variable names, values should be character vectors.

Value

data with variables in levels_union converted to factors with levels specified in levels_union

Examples

1
update_levels(d, list(var1=c("a","b","c"), var2=c("x","y")))

gregobad/biglm-mapper documentation built on May 9, 2019, 1:09 a.m.