summarize_and_clean_cbc.Rd
Summarize and clean the raw cbc data
summarize_and_clean_cbc(raw_data, cbc_abnormals, cbc_vars)
raw_data | the raw data tibble |
---|---|
cbc_abnormals, | a named list of functions of a single vector returning TRUE for abnormal values |
cbc_vars, | the names of fields to include; others are excluded |
a list of five items; errorCode (nonzero if error), errorMessage if any, missing_value_df the missing value data tibble, the summary data tibble, the data tibble filtered with relevant columns for us