| merge_all | R Documentation |
Merge data available for all individuals, separately per data type
merge_all(
data,
types = c("cgm", "basal", "bolus", "carbs", "SMBG", "total_basal", "total_bolus")
)
data |
A named list with the data of each individual (the output of
|
types |
A character vector with the data type names to be merged. Defaults to the five standardized types and the two daily insulin totals. |
A named list with one data frame per data type, holding the data of all individuals. Individuals without data of a given type contribute no rows.
all_data <- list(
"1" = parse_data("1", system.file("extdata", "glooko_example.zip", package = "aidR")),
"2" = parse_data("2", system.file("extdata", "dexcom_clarity_example.csv", package = "aidR"))
)
combined <- merge_all(all_data)
names(combined)
head(combined$cgm)
table(combined$cgm$id)
# Merge CGM data only
merge_all(all_data, types = "cgm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.