clean_numeric_event: Clean Numeric Event

Description Usage Arguments Value Examples

Description

Takes a numeric event type and makes all values <= lower cut or >= upper cut equal to "NA". Also can limit results to those with a specific unit type (which can be a character vector of multiple types) Note – need to add function to deduplicate by day and allow user to over-ride

Usage

1
2
clean_numeric_event(event_group = "", lower_cut = -Inf, upper_cut = Inf,
  unit_type = NULL)

Arguments

event_group

event type to clean

lower_cut

value below which data will be considered NA (inclusive)

upper_cut

value above which data will be considered NA (inclusive)

unit_type

limit to specific unit type (e.g., mmol/L)

Value

see above

Examples

1
## Not run: # nothing here yet

outcomesinsights/jigsaw_r documentation built on May 24, 2019, 5:54 p.m.