acs_vars: Create ACS variable codes

Description Usage Arguments See Also Examples

View source: R/acs_vars.R

Description

Use glue::glue() syntax to format and interpolate strings into ACS variable codes. By placing * at the end of a glue expression the values will be padded with "0" to length 3.

Usage

1
acs_vars(..., .envir = parent.frame())

Arguments

...

[expressions]: Expressions string(s) to format, multiple inputs are concatenated together before formatting.

.envir

[environment: parent.frame()]: Environment to evaluate each expression in. Expressions are evaluated from left to right. If .x is an environment, the expressions are evaluated in that environment and .envir is ignored.

See Also

http://glue.tidyverse.org/articles/transformers.html for explanation of transformers used here to pad numbers.

Examples

1
2
3
acs_vars("b25003_e{1:3*}")

acs_vars("b25003_e{c(1, 3)*}")

austensen/acssf documentation built on Nov. 18, 2020, 4:44 a.m.