View source: R/cces_std-for-acs.R
ccc_bin_age | R Documentation |
Discretize a vector of age integers into labelled variables
ccc_bin_age(agevec, agelbl = deframe(ccesMRPprep::age5_key))
agevec |
a vector of integers |
agelbl |
a value-key pair to be passed into recode, with values as the things to be recoded and labels as the labels for each value. |
The recoding is governed by age5_key
. IT currently only accepts
5-way binning, following the ACS.
ccc_bin_age(c(15:100, NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.