Learn R Programming

tidycensus (version 0.1.0)

load_variables: Load variables from a decennial Census or American Community Survey dataset to search in R

Description

Load variables from a decennial Census or American Community Survey dataset to search in R

Usage

load_variables(year, dataset, cache = FALSE)

Arguments

year

The year for which you are requesting variables. Either the year of the decennial Census, or the endyear for a 5-year ACS sample.

dataset

One of "sf1", "sf3", or "acs5".

cache

Whether you would like to cache the dataset for future access, or load the dataset from an existing cache. Defaults to FALSE.

Value

A tibble of variables from the requested dataset.