Learn R Programming

crmn (version 0.0.22)

dropunusedlevels: Drop unused levels

Description

Drop unused factor levels in a data frame.

Usage

dropunusedlevels(x)

Arguments

x

the data frame

Author

Henning Redestig

Examples

Run this code
iris[1:10,]$Species
dropunusedlevels(iris[1:10,])$Species

Run the code above in your browser using DataLab