getvars: Get ACS variable names from text.

View source: R/get_vars.R

getvarsR Documentation

Get ACS variable names from text.

Description

The getvars function gets ACS variable names from text containing formulas with addition, substraction, and/or division operators.

Usage

getvars(formula)

Arguments

formula

Character or vector of characters with formulas using ACS variable names.

Details

Text can be upper or lower case, include parentheses or "* 100".

Value

Returns a vector with uppercase ACS variables names.

Examples

getvars("b16004_004 + b16004_026 + b16004_048 / b16004_001")

sdaza/acsr documentation built on July 14, 2024, 2:23 a.m.