acs_moe_sum: Calculate the margin of error for a derived sum of ACS...

Description Usage Arguments

View source: R/acs_sum.R

Description

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().

Usage

1
acs_moe_sum(..., na.rm = TRUE, .envir = parent.frame())

Arguments

na.rm

[logical: TRUE]: A logical value indicating whether NA values should be stripped before the computation proceeds.

.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.


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