Exercise

Get a summary variable and calculate percentages

Many variables in the Census and American Community Survey are represented as counts or estimated counts. While count data is useful for some applications, it is often good practice to normalize count data by its denominator to convert it to a proportion or percentage to make clearer comparisons. This is facilitated in tidycensus with the summary_var argument, which allows users to request that a variable is given its own column in a tidy Census dataset. This value can then be used as the denominator for subsequent calculations of percentages.

Summary question: When the summary_var parameter is requested in get_acs(), what information is returned by the function?

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Assign a vector of ACS race and ethnicity variables to an object named race_vars.