filterAtlasExport: Filter clean Atlas export

Description Usage Arguments Value See Also Examples

View source: R/internal_functions.R

Description

Filter clean Atlas export according to input parameters

Usage

1
filterAtlasExport(x, input, stratified)

Arguments

x

dataframe, clean Atlas export (see cleanAtlasExport)

input

list of parameters as defined in the Signal Detection Application (see runEpiSDApp)

(i.e. list(disease, country, indicator, stratification, unit, daterange, algo, testingperiod))

stratified

a logical value indicating whether the report should be stratified by Population variable or not (default FALSE)

Value

dataframe filtered on the selected parameters (input list)

See Also

cleanAtlasExport aggAtlasExport

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#-- Setting the parameters to run the report for
input <- list(
disease = "Salmonellosis",
country = "EU-EEA - complete series",
indicator = "Reported cases",
stratification = "Confirmed cases",
unit = "Month",
daterange = c("2010-01-01", "2016-12-31"),
algo = "FarringtonFlexible",
testingperiod = 5
)

#-- Example dataset
dataset <- EpiSignalDetection::SignalData

#-- Filtering on declared input parameters
dataset <- filterAtlasExport(dataset, input, stratified = FALSE)

EU-ECDC/EpiSignalDetection documentation built on May 26, 2019, 2:36 a.m.