CreateObservationMatrices | R Documentation |
Compute 2D Sparse matrices enconding observations recorded in case.df
.
Rows are locations (indexed by postcodes) and columns are time steps.
If a character
vector of length N is passed as argument types
, then N
matrices are created only for the events with matching case.df$types
.
The matrices are saved on disk as '*observation_matrix.RData' files.
CreateObservationMatrices(
case.df,
types = NULL,
date.time.field = "week",
postcode.field = "postcode",
more.postcodes = c(),
more.weeks = c()
)
case.df |
A |
types |
|
date.time.field |
A |
postcode.field |
A |
more.postcodes |
A |
more.weeks |
A |
None
CreateObservationMatrices(case.df)
CreateObservationMatrices(case.df, types=c("1.0", "33.0"), 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.