getTableByMS: Get disease-specific table: distribution of cases by Member...

Description Usage Arguments Details Value See Also Examples

View source: R/AER_table.R

Description

Function returning the table ('flextable') that will be included in the epidemiological report at the bookmark location 'TABLE1' of the template report. An additional caption will be included at the location of the bookmark 'TABLE1_CAPTION'.
(see Table 1 of the ECDC annual reports https://www.ecdc.europa.eu/en/all-topics-z/surveillance-and-disease-data/annual-epidemiological-reports-aers)

Usage

1
2
3
4
5
6
7
8
9
getTableByMS(
  x = EpiReport::DENGUE2019,
  disease = "DENGUE",
  year = 2019,
  reportParameters = EpiReport::AERparams,
  MSCode = EpiReport::MSCode,
  index = 1,
  doc
)

Arguments

x

dataframe, raw disease-specific dataset (see specification of the dataset in the package vignette with browseVignettes(package = "EpiReport")) (default DENGUE2019)

disease

character string, disease code (default "DENGUE"). Please make sure the disease code is included in the disease-specific dataset x in the HealthTopicCode variable.

year

numeric, year to produce the table for (default 2019). Please make sure the year is included in the disease-specific dataset x in the TimeCode variable.

reportParameters

dataframe, dataset including the required parameters for the report production (default AERparams) (see specification of the dataset in the package vignette with browseVignettes(package = "EpiReport"))

MSCode

dataframe, correspondence table of GeoCode names and codes (default MSCode) (see specification of the dataset in the package vignette with browseVignettes(package = "EpiReport"))

index

integer, figure number

doc

'Word' document (see officer package) in which to add the table at the bookmark location. If doc is missing, getTable returns the flextable table object.

Details

The current version of the 'EpiReport' package includes three types of table (see detailed specification of the tables in the package vignette with browseVignettes(package = "EpiReport")):

Value

'Word' doc or flextable object (see 'flextable' package)

See Also

Global function for the full epidemiological report: getAER
Required Packages: flextable officer
Internal functions: shapeECDCFlexTable cleanECDCTable
Default datasets: AERparams MSCode

Examples

1
2
# --- Draft the table using the default Dengue dataset
getTableByMS()

EpiReport documentation built on July 5, 2021, 5:06 p.m.