get_variables: get_variables()

View source: R/get_variables.R

get_variablesR Documentation

get_variables()

Description

Function produces a dataframe of variable IDs and their descriptive parameters from the Census Bureau's publicly available datasets.

Usage

get_variables(
  dataset,
  vintage = NULL,
  group = NULL,
  brief = FALSE,
  filter_str = NULL
)

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.

group

An optional string that sets the group name associated with a set of variables

brief

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

filter_str

A character string by which to filter the variable IDs.

Details

Get the variable IDs of Census Bureau and their descriptive parameters

Value

A data.table

Author(s)

Rick Dean


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