From the course: Learning the R Tidyverse

Unlock the full course today

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

Create group summaries

Create group summaries - R Tutorial

From the course: Learning the R Tidyverse

Start my 1-month free trial

Create group summaries

- [Instructor] dplyr is a member of the tidyverse and provides a number of different verbs for manipulating, dissecting, and otherwise wrangling data. One really important aspect of data wrangling is getting a feeling of the data through summaries. And dplyr has a very powerful function or verb called summarise(), which generates summaries of data quickly and efficiently. Let's look at how we go about doing that inside of RStudio. So, in our project, we have two folders, data and data-raw but I'm not going to do anything with those, I'm going to go directly to the data-processing.R file. So, let's open it up and see what we have. Before I do, I want a closed Environment because I don't need to see it in this exercise. So, I'll maximize the size of my script file. And I'll also get rid of my File Explorer, so I just have my Console and my script file, here on the left. So, at the top of the script file, I do what I do whenever I'm using the tidyverse. I load it using library, this…

Contents