Learn R Programming

MLmorph (version 0.1.1)

factorize_nicely_dataframe: Heuristic factorization for all columns of a data frame

Description

Heuristic factorization for all columns of a data frame

Usage

factorize_nicely_dataframe(data_frame)

Value

A data frame with all columns converted to factors.

Arguments

data_frame

A data frame.

Examples

Run this code
df <- data.frame(x = runif(20), y = rep(c(TRUE, FALSE, TRUE, TRUE), 5))
factorize_nicely_dataframe(df)

Run the code above in your browser using DataLab