Learn R Programming

caroline (version 0.9.9)

addFactLevs: Add new levels to the Factors in a DataFrame.

Description

This function loops through all of the factor columns in a dataframe and adds new.levs to the factor levels list.

Usage

addFactLevs(x, new.levs=NA)

Arguments

x

a dataframe.

new.levs

new levels to be added.

See Also