cens_margin_to: Helper function to sum over nuisance variables

View source: R/utils.R

cens_margin_toR Documentation

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

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.

Value

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

Examples

## Not run: 
d_cens = cens_get_acs("state", "B25042")
cens_margin_to(d_cens, bedrooms)

## End(Not run)

easycensus documentation built on March 31, 2023, 10:57 p.m.