Learn R Programming

crmn (version 0.0.19)

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
iris[1:10,]$Species
dropunusedlevels(iris[1:10,])$Species

Run the code above in your browser using DataLab