Exercise 6. group_by example 2
Now let's practice using group_by
some more. We are going to repeat the previous exercise of calculating the average and standard deviation of systolic blood pressure, but for males instead of females.
This time we will not provide much sample code. You are on your own!
This exercise is part of the course
Data Science Visualization - Module 2
Exercise instructions
Calculate the average and standard deviation of systolic blood pressure for males for each age group separately using the same methods as in the previous exercise.
Note: ignore warnings about implicit NAs. This warning will not prevent your code from running or being graded correctly.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
library(dplyr)
library(NHANES)
data(NHANES)