Skip to contents

Convert factor columns to characters in a data.frame

Usage

fact2char(data, threshold = 10)

Arguments

data

A data.frame

threshold

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

Value

The data.frame data with factors converted by the rule above

See also