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

addFactLevs {caroline} | R Documentation

## 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

factor, levels

[Package caroline version 0.7.6 Index]