Learn R Programming

crmn (version 0.0.21)

dropunusedlevels: Drop unused levels

Description

Drop unused factor levels in a data frame.

Usage

dropunusedlevels(x)

Arguments

x

the data frame

Examples

Run this code
# NOT RUN {
iris[1:10,]$Species
dropunusedlevels(iris[1:10,])$Species
# }

Run the code above in your browser using DataLab