powered by
Heuristic factorization for all columns of a data frame
factorize_nicely_dataframe(data_frame)
A data frame with all columns converted to factors.
A data frame.
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