getBenefitsTable: Get benefits table

Description Usage Arguments Value Examples

View source: R/countries.R

Description

Create a table that tells the global benefits corresponding to every level of effective capacity

Usage

1
getBenefitsTable(countryData, max = 1000, grid = 1)

Arguments

countryData

data.table with country data

max

Maximum effective capacity to compute benefits for

grid

Resolution of the capacity grid

Value

data.table keyed by capacity. The socialBenefits column gives the benefit from the program

Examples

1
2
3
4
5
6
## Not run:   
countryData <- loadCountryData(system.file('extdata',
  'countryData.xlsx',package = 'vaccineEarlyInvest'))
benefitsTable <- getBenefitsTable(countryData)

## End(Not run)

jc-castillo/vaccineEarlyInvest documentation built on Sept. 29, 2020, 12:48 p.m.