View source: R/build_api_variable.R
build_api_variable | R Documentation |
All detail group variables have the format "B000OO*_000E", where the "B" and "E" are literal and the "*" is a race code.
build_api_variable(
group_code,
item_number,
race_code = "",
separator = "_",
suffix = "E"
)
group_code |
the group code, like "B18101" |
item_number |
some integer between 0 and 999 |
race_code |
optional, either an empty string or one of [A..I] |
separator |
optional, usually "_" for ACS variables. |
suffix |
optional, usually "E" for ACS variables, but sometimes "N" for decennial data. |
a vector of strings, each of which is a variable name
groups <- c("B19013", "B18101", "B18101")
races <- c("", "", "I")
numbers <- 1
build_api_variable(groups, numbers, races)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.