| check_completeness | R Documentation |
Accepts either the output of parse_data for a single individual
or the output of merge_all for multiple individuals. Every
individual found in the data is checked separately.
check_completeness(data, necessary_types = c("cgm", "basal", "bolus", "carbs"))
data |
A list with all data found for one individual (the output of
|
necessary_types |
A character vector with type names for which data should be available. |
No return value, called for side effects. Issues a message for every individual and data type with missing data.
# A mylife export contains no CGM and no basal data
path <- system.file("extdata", "mylife_example.csv", package = "aidR")
data <- parse_data(id = "1", paths = path)
check_completeness(data)
# Only require bolus and carbohydrate data
check_completeness(data, necessary_types = c("bolus", "carbs"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.