Learn R Programming

easycensus (version 1.1.3)

cens_margin_to: Helper function to sum over nuisance variables

Description

For ACS data, margins of error will be updated appropriately, using the functionality in estimate().

Usage

cens_margin_to(data, ...)

Value

A new data frame that has had dplyr::group_by() and dplyr::summarize() applied.

Arguments

data

The output of cens_get_dec() or cens_get_acs()

...

The variables of interest, which will be kept. Remaining variables will be marginalized out.

Examples

Run this code
if (FALSE) {
d_cens = cens_get_acs("state", "B25042")
cens_margin_to(d_cens, bedrooms)
}

Run the code above in your browser using DataLab