get_variable: get_variable()

View source: R/get_variable.R

get_variableR Documentation

get_variable()

Description

Function produces a dataframe of a variable's ID and its label from the Census Bureau's publicly available datasets.

Usage

get_variable(dataset, vintage = NULL, variable_name, brief = FALSE)

Arguments

dataset

A string that sets the name of the dataset of interest (e.g. "acs/acs5"). See Rcensus::get_dataset_names() for available dataset names.

vintage

An optional numeric or vector of numerics that sets the year(s) of interest.

variable_name

A string that sets the name of the variable of interest

brief

If TRUE out of the total columns, will return only columns name, label, predicateType.

Details

Get the code and label metadata for a single variable from the Census Bureau

Value

A data.table

Author(s)

Rick Dean


deandevl/Rcensus documentation built on Aug. 9, 2022, 8:24 p.m.