FormatData: Format the raw data

Description Usage Arguments

View source: R/CleanData.R

Description

Format the raw data

Usage

1
2
3
4
5
6
FormatData(d, SYNDROME, population = readRDS(system.file("extdata", "pop.RDS",
  package = "sykdomspuls")), hellidager = fread(system.file("extdata",
  "DatoerMedHelligdager.txt", package = "sykdomspuls"))[, c("Dato",
  "HelligdagIndikator"), with = FALSE],
  testIfHelligdagIndikatorFileIsOutdated = TRUE,
  removeMunicipsWithoutConsults = FALSE)

Arguments

d

Raw data

SYNDROME

Syndrome of interest

population

Population file

hellidager

Hellidager file

testIfHelligdagIndikatorFileIsOutdated

Boolean. Test if the current date is older than the last hellidag recorded in the fiel?

removeMunicipsWithoutConsults

Boolean. Remove municipalities that do not have any consultations?


raubreywhite/dashboards_sykdomspuls documentation built on Nov. 17, 2018, 3:16 p.m.