Session Ready
Exercise

Loading variables in tidycensus

There are hundreds of thousands of variables in the decennial Census and American Community Survey samples, which can make it difficult to know which variable codes to use! tidycensus aims to make this easier with the load_variables() function, which obtains a dataset of variables from a specified sample and loads it into R as a browsable data frame.

Instructions 1/3
undefined XP
  • 1

    Use load_variables() to get a dataset of variables from the 2012-2016 American Community Survey.

    • 2

      Get an ACS Data Profile dataset from 2016 using "acs5/profile".

    • 3

      Get variables from Summary File 3 of the 2000 decennial Census by setting the year to 2000 and the dataset to "sf3".