Description Usage Arguments Value Examples
Used by 'spew' to split the generated of synthetic ecosytstems into independent regions.
1 2 3 4 5 |
index |
specfic row of pop-table to generate |
pop_table |
dataframe where rows correspond to places where populations should be generated. Other requird columns are "n_house" and "puma_id" |
shapefile |
sp class object used for assigning households to particular locations |
pums_h |
dataframe with microdata corresponding to housegolds |
pums_p |
dataframe with microdata corresponding to people |
schools |
list with names "public" and "private" with a dataframe of schools corresponding to public or private, respectively |
workplaces |
dataframe of workplaces with a workplace_id column, employees column, and stcotr column |
marginals |
list of marginal population totals. Each element of the list contains the marginal totals of a separate variable |
output_type |
Default is "console" if we want to resulting population as an R variable. Alternative is "write", which is used on Olympus for writing out .csv files of the population |
sampling_method |
character indicating the type of sampling method to use, defaults to "uniform". Can also be "ipf" with appropriate marginal data. |
locations_method |
character indicating the type of location sampling to use, defaults to "uniform", can also be "roads". |
convert_count |
logical meant to indicate if we are going to convert population totals from people to household counts. Default: FALSE, assumes the population is the total number of households |
output_dir |
directory to write output if output_type = "write", NULL otherwise |
road_noise |
Noise added to households during road-based sampling |
timer |
logical indicating we want to time the run |
verbose |
logical indicating we want to print output during the run. Default is FALSE.#' |
List of a synthetic ecosystem
1 2 3 4 5 6 7 | data(tartanville)
tartanville_T1 <- spew_place(index = 1,
pop_table = tartanville$pop_table,
shapefile = tartanville$shapefile,
pums_h = tartanville$pums_h,
pums_p = tartanville$pums_p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.