| CreateBaselineMatrix | R Documentation |
Compute and save on disk a 2D dense matrix representing the
baseline, given a data.frame of events (case.df), where rows represent the spatial component of the baseline
(indexed, e.g., by postcodes) and columns represent the temporal component.
It is possible to insert null rows corresponding to postcodes not included in case.df using more.postcodes field
for increased accuracy.
CreateBaselineMatrix(
case.df,
save.on.dir = FALSE,
date.time.field = "week",
postcode.field = "postcode",
more.postcodes = c(),
more.weeks = c()
)
case.df |
A |
save.on.dir |
|
date.time.field |
A |
postcode.field |
A |
more.postcodes |
A |
more.weeks |
A |
A Matrix.
baseline.matrix = CreateBaselineMatrix(case.df, more.postcodes=c('CV31 1LS', 'E1 3BS'))
baseline.matrix = CreateBaselineMatrix(case.df, date.time.field = 'SAMPLE_DT_numeric', postcode.field = 'Patient Postcode')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.