params_select: Filter a data frame (or equivalent) based on a set of...

Description Usage Arguments Value

Description

Filter a data frame (or equivalent) based on a set of parameters

Usage

1
params_select(dat, params)

Arguments

dat

A data frame to be filtered

country_set

A string denoted a set of countries: "gavi73", "gavi69", "pine" or NULL

vaccine_type

A vector of string denoting the type of vaccination type "campaign" or "routine"

vaccine

A vector of string denoting the vaccine "JE", "Measles", "MenA", "Rubella", "YF", "HepB", "Hib3", "HPV", "MCV2", "PCV3", "Rota"

country

A vector of strings of ISO country codes e.g. "BGD"

continent

A vector of strings for continents e.g. "Asia"

region

A vector of strings for continents e.g. "Southern Asia"

metric

A vector of strings for metric "cases_averted", "deaths_averted", "future_deaths_averted", "future_cases_averted"

year_lo

A numeric value the lower bound for the year filtering

year_hi

A numeric value the upper bound for the year filtering

support_type

A string idincating the support type, usually "gavi" or "total"

is_focal

A boolean, indicating whether or not to use the focal model

model

A string indicating which model to use, only used if is_focal is FALSE

touchstone

A vector of string indicating which touchstones to use

Value

The filtered data frame


vimc/phipps documentation built on May 29, 2019, 9:56 a.m.