organize_summaries: Organize the summaries into a more palatable format

Description Usage Arguments Value

View source: R/diags.R

Description

Organize the summaries into a more palatable format

Usage

1
2
3
organize_summaries(hh_sum_list, p_sum_list, header_h, header_p, vars_to_sum_h,
  vars_to_sum_p, env_vars, samp_size, top_region_id, coords = TRUE,
  has_marg = FALSE)

Arguments

hh_sum_list

output of summarize_spew for regions for households

p_sum_list

output of summarize_spew for regions for people

header_h

character vector of all variables in SPEW households

header_p

character vector of all variables in SPEW people

vars_to_sum_h

character vector of household variables we want to summarize

vars_to_sum_p

character vector of people variables we want to summarize

env_vars

variables to summarize

samp_size

total number sampled in each region for plotting

top_region_id

main region's ID or name

coords

logical of whether to extract the longitude/latitude coordinates and store. Default is TRUE

has_marg

logical. Does the synthetic ecosystem have marginals to look at? Default is FALSE

Value

list including the top region name, headers for households and people, a coordinate plotting data frame scaled to the density of the population with max samp_size records, and data frames of tables for each region for each of the characteristics


spew documentation built on Nov. 17, 2017, 7:36 a.m.