Description Usage Arguments Value
View source: R/add_characteristics.R
Set up for creating a set of marginal information for IPF sampling
1 2 | make_ipf_obj(var_name, type = "ord", bounds, category_name,
output_file = NULL, df = NULL)
|
var_name |
name of the variable matching the PUMS/microdata |
type |
"ord" for ordinal or "cat" for categorical, the type of variable to be converted to |
bounds |
dataframe of upper and lower bounds (inclusive) for variables (numeric) |
category_name |
short name of the category, will be visible to person. Either length one and the bounds will be pasted to it or length of the number of rows of the bounds with names of your choice. |
output_file |
if not NULL then we save the file as a RDS object to output_file |
df |
data frame with place_id and category counts |
a list in the format for use in IPF
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.