guess_measure_sets {expstudy} | R Documentation |
Guess a measure set using regexs
Description
Attempt to guess the names of a measure set using regular expressions (or regexs).
Usage
guess_measure_sets(
data,
measure_regexs = getOption("expstudy.default_measure_regexs"),
measure_set_prefixes = getOption("expstudy.default_measure_set_prefixes"),
measure_set_suffixes = getOption("expstudy.default_measure_set_suffixes")
)
Arguments
data |
A |
measure_regexs |
A named list of patterns to use as regexs when guessing columns in the
study dataset to be used for one study measure in each measure set. There
must be one column for each measure in a measure set (actuals, expecteds,
exposures, and variances). Defaults to
|
measure_set_prefixes , measure_set_suffixes |
Character vectors that will be use to differentiate the same measure in
one measure set from another measure set. Using If the experience study has columns that follow a consistent naming
structure, this function can seamlessly provide other |
Value
A named list of measure sets that identify common variables used for
expstudy
analyses.
Examples
guess_measure_sets(mortexp)