Exercise

Exercise 1. Blood pressure 1

Let's explore the NHANES data. We will be exploring blood pressure in this dataset.

First let's select a group to set the standard. We will use 20-29 year old females. Note that the category is coded with 20-29, with a space in front of the 20! The AgeDecade is a categorical variable with these ages.

To know if someone is female, you can look at the Gender variable.

Instructions

100 XP
  • Filter the NHANES dataset so that only 20-29 year old females are included and assign this new data frame to the object tab.
  • Use the pipe to apply the function filter, with the appropriate logicals, to NHANES.
    • Remember that this age group is coded with 20-29, which includes a space. You can use head to explore the NHANES table to construct the correct call to filter.