knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(sykdomspuls)
sykdomspuls
requres a specific raw data format. We require one (or less) rows for each structural variable:
print(as.character(sykdomspuls::VARS$REQ_DATA_RAW_STRUCTURAL))
For each row, the variables saved in sykdomspuls::CONFIG$SYNDROMES
and sykdomspuls::VARS$REQ_DATA_RAW_OTHER
contain the number of consultations that occurred for that combination of structural variables.
print(as.character(sykdomspuls::CONFIG$SYNDROMES)) print(as.character(sykdomspuls::VARS$REQ_DATA_RAW_OTHER))
In total, we require the following variables:
print(as.character(sykdomspuls::VARS$REQ_DATA_RAW_ALL))
We can use the function GenFakeDataRaw()
to generate a set of fake data for municip5054
.
d <- GenFakeDataRaw() print(d)
And we can then use the function ValidateDataRaw()
to ensure that our fake data is in the correct format:
print(ValidateDataRaw(d))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.