Last active
October 17, 2020 22:59
-
-
Save fabiojwalter/0d7beee5704240981a2034628ce93162 to your computer and use it in GitHub Desktop.
R Language - Convert features to Factors and Analyze them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(summarytools) | |
df <- churn %>% | |
mutate_if(sapply(churn, is.character), as.factor) %>% | |
mutate_if(sapply(churn, is.double), as.factor) | |
dfSummary(df, style = "grid", justify = "r", round.digits = 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample output