Description Super classes Methods
Process metawards output
Process metawards output
ukcovidtools::PassthroughFilesystemCache
-> ukcovidtools::DataProvider
-> MetawardProcessingPipeline
new()
MetawardProcessingPipeline$new(providerController, ...)
readSpatialFile()
loads a spatial model file
MetawardProcessingPipeline$readSpatialFile(fname, ignoreErrors = FALSE)
fname
- a filename containing a ward based metaward model .dat file
a data frame containing the simulation results
loadAgeTimeMatrix()
loads an age time matrix from a csv
MetawardProcessingPipeline$loadAgeTimeMatrix(url)
url
- a url or filename for a csv file
a data frame containing the filter
applyAgeTimeMatrix()
applies a age time matrix to a dataframe containing an incidence, an age category column, and a date column
MetawardProcessingPipeline$applyAgeTimeMatrix( inputDf, matrixDf, oldIncidenceVar = "incidence", newIncidenceVar = "incidence", oldDateVar = "date", newDateVar = "date", ageCatVar = "ageGroup" )
inputDf
- an input df containing an incidence col, a date col and a ageCategory col this must be grouped
matrixDf
- a dataframe containing a sparse matrix of probabilities where age is labelled
oldIncidenceVar
- the name of the input incidence col
newIncidenceVar
- the name of the output incidence col
oldDateVar
- the name of the input date column
newDateVar
- the name of the output date column
ageCatVar
- the age category variable
Make sure your age categories are the saem as the matrix you are applying The age time matrix can implement a delay, aggregate over time and or filter by age
a data frame containing the simulation results
loadDefaultAgeTimeMatrices()
loads a ventilator demand matrices
MetawardProcessingPipeline$loadDefaultAgeTimeMatrices()
a list of matrices
clone()
The objects of this class are cloneable with this method.
MetawardProcessingPipeline$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.