This function calculates the margin of error for a derived sum of ACS
variables from the ACS estimates and margins of error returned by
acs_transform()
. It assumes the data structure of a dataframe returned by
acs_transform()
, where each row is a geography and each column is an ACS
estimate or margin of error, and so is used within a dplyr::mutate()
call
and sums across rows. The main argument to this function is first parsed with
acs_vars()
and then the columns are found within the dataframe. The
variables provided should be fore the estimates and it will also find the
corresponding margins of error columns using the standard naming conversion
of acs_transform()
.
1 | acs_moe_sum(..., na.rm = TRUE, .envir = parent.frame())
|
na.rm |
[ |
.envir |
[ |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.