Exercise

Working with the NHANES data

Throughout this chapter, you will use the NHANES dataset from the NHANES R package. The data are collected by the Center for Disease Control (CDC, the national public health institute in the United States) and can be thought of as a random sample of US residents.

Before moving on to investigate particular variables, you'll have an opportunity to briefly explore the data in this exercise.

Instructions 1/3

undefined XP
    1
    2
    3
  • Load the ggplot2 and NHANES packages, one at a time.
  • Use the colnames() function to list the variables included in NHANES. (Click the link for more info.)