dropLevels: Drop factor levels from a dataframe

View source: R/dropLevels.R

dropLevelsR Documentation

Drop factor levels from a dataframe

Description

Function to drop factor levels from a dataframe.

Usage

dropLevels(tbl, dropLevels = NULL)

Arguments

tbl
  • dataframe to drop levels from

dropLevels
  • list by factor name of factor levels to drop

Details

Distinct levels of each factor can be dropped from the exported dataframe by seting dropLevels to a list with names corresponding to factor columns and values being vectors of factor levels to drop.

Value

dataframe


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.