Last active
October 8, 2020 16:41
-
-
Save MonkmanMH/2e328724e4535daadf3d000dce8d235a to your computer and use it in GitHub Desktop.
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
penguins <- palmerpenguins::penguins | |
penguins %>% | |
filter(!is.na(sex)) %>% | |
mutate(bm_quart = gtools::quantcut(body_mass_g, q=4)) | |
penguins_2 <- penguins %>% | |
filter(!is.na(sex)) %>% | |
select(species, sex, body_mass_g) %>% | |
# mutate(bm_quart = gtools::quantcut(body_mass_g, q=4)) | |
mutate(bm_quart = as.integer(gtools::quantcut(body_mass_g, q=4))) %>% | |
mutate(bm_quart = as.factor(bm_quart)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment