cvap_distribute | R Documentation |
Assuming citizenship homogeneity within block group race/ethnicity, estimates down from block groups to the block level, proportionally by group if possible, otherwise by total population.
cvap_distribute(cvap, block, wts = "pop", include_implied = TRUE)
cvap |
cvap data at the block group level, using default settings of |
block |
block data data for the Census before (or the same as) the year of the cvap data |
wts |
|
include_implied |
logical if a column for the implied total ( |
cvap tibble estimated at the block level
## Not run:
# Requires API set up with tidycensus
state <- 'DE'
cvap <- cvap_get(state, year = 2019)
de_block <- censable::build_dec(geography = 'block',
state = state, year = 2010, geometry = FALSE)
## End(Not run)
# Alternatively, using example data
state <- 'DE'
cvap <- cvap_get(state, year = 2019)
data('de_block')
cvap_block <- cvap_distribute(cvap, de_block)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.