From the course: Learning the R Tidyverse

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Compare group_by and group_by_

Compare group_by and group_by_ - R Tutorial

From the course: Learning the R Tidyverse

Start my 1-month free trial

Compare group_by and group_by_

- [Instructor] The tidyverse can be considered an ecosystem of powerful verbs for operating on or with data. When you look through the documentation, or online examples of codes in the tidyverse, you'll almost always find two versions of a verb, one with and one without an underscore at the end of the verb. For instance, group_by and the slightly odd group_by_. The underscore version of functions allow one to program with the verb, i.e. to provide arguments as strings. Let's look at how this works in RStudio. So, in our R Project, we have a file called custom-summarise.R. Let's open that up and see what we have here. I've just decreased the size of my environment because I don't care to see it, and I'll also decrease my file viewer because I don't need it either. So now I have my script file and my console. At the top of the script file, I load the tidyverse library, which I do with Command + Enter, and the standard libraries of the tidyverse are loaded for me, including readr, which…

Contents