neaten_raw_output_by_country: format the summary statistic by country over all n_runs

Description Usage Arguments Value

View source: R/analyses.R

Description

format the summary statistic by country over all n_runs

Usage

1
2
neaten_raw_output_by_country(res, labels, regionDat, latitudeDat,
  melted = FALSE)

Arguments

res

summary statistics outputted by run_simulation. Should be a list of length n_runs, where each element is a numeric vector of length n_countries.

labels

data frame outputted by setup_inputs containing country names

regionDat

data frame containing a column for Location and a column for the region that location is in. read from data/regions_clean.csv

latitudeDat

data frame containing a column for Location and a column for the latitude of the location. read from data/latitudes_intersect.csv

melted

if TRUE, returns the data frame melted by the outcome variable of interest. otherwise, enumerates outcome variable across columns

Value

a data frame with the summary statistic for each run for each country; the region and hemisphere each country belongs to; and the latitude of each country


jameshay218/vaxedemic documentation built on July 29, 2018, 12:43 p.m.