Learn R Programming

mark (version 0.8.1)

fact2char: Factor to character

Description

Convert factor columns to characters in a data.frame

Usage

fact2char(data, threshold = 10)

Value

The data.frame

data with factors converted by the rule above

Arguments

data

A data.frame

threshold

A threshold for the number of levels to be met/exceeded for transforming into a character

See Also

char2fact()

Other factors: as_ordered(), char2fact(), drop_levels(), fact(), fact_na()