Description Usage Arguments Value
format the summary statistic by country over all n_runs
1 2 | neaten_raw_output_by_country(res, labels, regionDat, latitudeDat,
melted = FALSE)
|
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.