Practice with dplyr in R
This is part of the data science playlist. See more at • Data Science with R
Here's the dataset: quantpsych.net/data/mindfulness.csv
Here's the R script: quantpsych.net/data/8-dplyr practice.R
This is part of the data science playlist. See more at • Data Science with R
Here's the dataset: quantpsych.net/data/mindfulness.csv
Here's the R script: quantpsych.net/data/8-dplyr practice.R
Пікірлер: 3
Great video Mr. Psych! I learned how to use `select` within a function within `mutate` (the `.` part was helpful). For the `summarise()` you had going at the end there, I also use the function `everything()` within `across()` if I want to implement the `summarise()` function on all of the columns. Example using the mtcats dataset: require(tidyverse) mtTest % + filter(qsec > 19) %>% + mutate(carbonGear = rowSums(select(., c("gear", "carb")))) %>% + group_by(cyl) %>% + summarise(across(everything(), mean))
Love your Videos! Always helpful and also fun to watch! Keep it up!
Great video! Hoping for beta regression next!