parseDefaultsFile: Function to parse a EuroMOMO specification file.

Description Usage Arguments Details Note

Description

The function sets R-EuroMOMO algorithm parameters based on a cascading series of TXT file consisting of <Lefthandside> = <Righthandside> operators.

Usage

1

Arguments

fileName

of the parameter configuration file

debug

if true print extensive information

Details

Operation: Each <LHS> = <RHS> is stored in a list. There are two special LHS's: except and group, which are used to specify exception periods and group information. First a global defaults.txt file is ran and then possibly local defaults are run. Parameters which need to be here: see ImportantVarNames in checkOptions.

Syntax for specifying groups: <group>.<groupName>.<attributeName> = <attributeValue.
Syntax for specifying except periods: except = <Start ISO-week>:<End ISO-week>.

There are five pre-defined age groups: momodefault<1-5>.

Note

The parser is handwritten based on regular expressions, which is prone to error. Future versions could be, e.g., XML based.


thl-mjv/euromomo documentation built on May 31, 2019, 10:43 a.m.