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

Пікірлер: 3

  • @MKhan-zo8xo
    @MKhan-zo8xo2 жыл бұрын

    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))

  • @janja7471
    @janja74712 жыл бұрын

    Love your Videos! Always helpful and also fun to watch! Keep it up!

  • @brazilfootball
    @brazilfootball2 жыл бұрын

    Great video! Hoping for beta regression next!