Man pages for aidR
Reading and Standardizing Automated Insulin Delivery Data

aidR-packageaidR: Reading and Standardizing Automated Insulin Delivery...
check_completenessCheck if data for different types are available for at least...
check_completeness_rangeCheck if data for different types are available for a range...
check_insulin_totalsCheck that the summed insulin matches the daily totals...
cleanGeneric function for cleaning data
clean.carelinkFormat and clean the CareLink data to keep relevant columns...
clean.dexcom_clarityFormat and clean the Dexcom Clarity data to keep relevant...
clean.glookoFormat and clean the Glooko data to keep relevant columns...
clean.mylifeFormat and clean the mylife data to keep relevant columns...
clean.tandem_sourceFormat and clean the Tandem Source data to keep relevant...
clean.tidepoolFormat and clean the Tidepool data to keep relevant columns...
clean.yourloopsFormat and clean the YourLoops data to keep relevant columns...
dot-aggregate_per_day.aidRAggregate a standardized data frame into one value per day
dot-carelink_carb_variants.aidRThe carbohydrate column names used in a CareLink export
dot-check_completeness_id.aidRCheck if data for different types are available for at least...
dot-check_completeness_range_id.aidRCheck if data for different types are available for a range...
dot-check_if_missing_columns_with_data.aidRCheck that no relevant columns were missed when splitting a...
dot-check_insulin_total.aidRCompare the summed and the reported daily insulin of one data...
dot-check_time_shift.aidRWarn if the entries of two formats are shifted by one hour
dot-clean_carelink_bolus.aidRFormat and clean bolus data from a CareLink export
dot-clean_carelink_carbs.aidRFormat and clean carbohydrate data from a CareLink export
dot-clean_carelink_CGM.aidRFormat and clean CGM data from a CareLink export
dot-clean_carelink_SMBG.aidRFormat and clean SMBG data from a CareLink export
dot-clean_mylife_bolus.aidRFormat and clean bolus data from a mylife export
dot-clean_mylife_carbs.aidRFormat and clean carbohydrate data from a mylife export
dot-clean_mylife_SMBG.aidRFormat and clean SMBG data from a mylife export
dot-coerce_to.aidRCoerce a vector to a target atomic type
dot-convert_BG_units_carelink.aidRConvert blood glucose units to mg/dL in a CareLink file
dot-convert_excel_datetime.aidRConvert timestamps from an Excel file formatted as fractional...
dot-convert_excel_serial.aidRConvert timestamps from an Excel file formatted as serial...
dot-convert_timestamp_carelink.aidRConvert timestamps of a CareLink file to POSIXct timestamps
dot-create_link_id.aidRCreate a key linking bolus and carbohydrate entries of the...
dot-daily_insulin_totals.aidRThe insulin delivered on one day, for the header of the...
dot-detect_csv_separator.aidRDetect the separator of a CSV file
dot-diax_device.aidRDetermine the device name(s) recorded for one data type
dot-diax_device_col.aidRName of the column holding the device name, per aidR data...
dot-diax_list.aidRBuild a full DIAX list for one individual
dot-diax_metadata.aidRBuild the 'metadata' section of a DIAX list
dot-diax_metadata_time.aidRDescribe the timestamp convention used, for the DIAX metadata
dot-diax_series.aidRBuild one DIAX time/value series from a standardized aidR...
dot-diax_series_map.aidRMapping from aidR data types to DIAX field names
dot-diax_value_col.aidRName of the column holding the series value, per aidR data...
dot-draw_leader_lines.aidRDraw a leader line from a moved marker to the time it...
dot-extract_estimated_absorption_duration_tidepool.aidRExtract the estimated absorption duration from the Food sheet...
dot-extract_net_carbs_tidepool.aidRExtract the net carbohydrate amount from the 'Nutrition'...
dot-filter_cgm.aidRFilter CGM data
dot-filter_near_duplicates.aidRRemove near-duplicate entries from different formats
dot-filter_overwritten_carbs.aidRRemove carbohydrate entries that were overwritten by another...
dot-filter_relevant_files.aidRFilter a character vector to retain only recognized data file...
dot-find_near_duplicates.aidRFind near-duplicate entries from different formats
dot-find_overwritten_carbs.aidRFind carbohydrate entries that were overwritten by another...
dot-find_slow_carbs.aidRFind series of slowly absorbed carbohydrates that Glooko...
dot-format_basal_glooko.aidRFormat and clean basal data from a Glooko export
dot-format_basal_tandem_source.aidRFormat and clean basal data from a Tandem Source export
dot-format_basal_tidepool.aidRFormat and clean basal data from a Tidepool export
dot-format_basal_yourloops.aidRFormat and clean basal data from a YourLoops export
dot-format_bg_tandem_source.aidRFormat and clean SMBG data from a Tandem Source export
dot-format_bolus_calculator_tidepool.aidRFormat and clean carbohydrate data from the Bolus Calculator...
dot-format_bolus_glooko.aidRFormat and clean bolus data from a Glooko export
dot-format_bolus_tandem_source.aidRFormat and clean bolus data from a Tandem Source export
dot-format_bolus_tidepool.aidRFormat and clean bolus data from a Tidepool export
dot-format_bolus_yourloops.aidRFormat and clean bolus data from a YourLoops export
dot-format_carbs_glooko.aidRFormat and clean carbohydrate data from a Glooko export
dot-format_carbs_tandem_source.aidRFormat and clean carbohydrate data from a Tandem Source...
dot-format_carbs_yourloops.aidRFormat and clean carbohydrate data from a YourLoops export
dot-format_cgm_dexcom_clarity.aidRFormat and clean CGM data from a Dexcom Clarity export
dot-format_cgm_glooko.aidRFormat and clean CGM data from a Glooko export
dot-format_cgm_tandem_source.aidRFormat and clean CGM data from a Tandem Source export
dot-format_cgm_tidepool.aidRFormat and clean CGM data from a Tidepool export
dot-format_cgm_yourloops.aidRFormat and clean CGM data from a YourLoops export
dot-format_date_ranges.aidRFormat date ranges
dot-format_diax_time.aidRFormat timestamps according to the DIAX ISO 8601 convention
dot-format_food_tidepool.aidRFormat and clean carbohydrate data from the Food sheet of a...
dot-format_glooko_file.aidRFormat any file from a Glooko export by configuring...
dot-format_rescuecarbs_yourloops.aidRFormat and clean rescue carbohydrate data from a YourLoops...
dot-format_SMBG_glooko.aidRFormat and clean SMBG data from a Glooko export
dot-format_SMBG_tidepool.aidRFormat and clean SMBG data from a Tidepool export
dot-format_tandem_source_file.aidRFormat any file from a Tandem Source export by configuring...
dot-format_timestamp_yourloops.aidRFormat timestamps to get local (wall-clock) time of a...
dot-format_total_basal_glooko.aidRTotal basal insulin per day, as reported by a Glooko export
dot-format_total_basal_tandem_source.aidRTotal basal insulin per day, as reported by a Tandem Source...
dot-format_total_bolus_glooko.aidRTotal bolus insulin per day, as reported by a Glooko export
dot-format_total_insulin_glooko.aidRFormat and clean daily aggregated insulin data from a Glooko...
dot-format_units.aidRWrite an amount of insulin for the plot
dot-get_all_files_in_path.aidRRecursively traverse a directory and return all contained...
dot-get_carelink_aggr_auto_insulin.aidRParse all entries corresponding to the daily aggregated auto...
dot-get_carelink_alerts.aidRParse all entries corresponding to alerts in a CareLink...
dot-get_carelink_bolus.aidRParse all entries corresponding to bolus deliveries in a...
dot-get_carelink_BWZ.aidRParse all entries corresponding to the bolus wizard in a...
dot-get_carelink_carb_variant.aidRFind the carbohydrate columns present in a CareLink export
dot-get_carelink_CGM.aidRParse all entries corresponding to CGM data in a CareLink...
dot-get_carelink_correction_bolus_info.aidRParse all entries corresponding to correction boluses in a...
dot-get_carelink_device_changes.aidRParse all entries corresponding to device changes in a...
dot-get_carelink_insulin_action_curve_over_time.aidRParse all entries corresponding to insulin action curve over...
dot-get_carelink_prime.aidRParse all entries corresponding to prime events in a CareLink...
dot-get_carelink_scheduled_basal_rates.aidRParse all entries corresponding to the scheduled basal rates...
dot-get_carelink_sensor_calibration.aidRParse all entries corresponding to sensor calibration in a...
dot-get_carelink_sensor_exceptions.aidRParse all entries corresponding to sensor exceptions in a...
dot-get_carelink_SMBG.aidRParse all entries corresponding to SMBG in a CareLink export
dot-get_carelink_temp_basal.aidRParse all entries corresponding to temporary basal rates in a...
dot-get_glooko_file_lookup.aidRA lookup with Glooko file characteristics
dot-get_sep_dexcom_clarity.aidRFind the separator used in a Dexcom Clarity export
dot-get_tandem_source_file_lookup.aidRA lookup with Tandem Source file characteristics
dot-get_yourloops_file_lookup.aidRA lookup with YourLoops file characteristics
dot-get_yourloops_file_type.aidRGet the data type of a file from a YourLoops export
dot-harmonise_column_types.aidRHarmonise column types across a list of data frames
dot-id_prefix.aidRPrefix identifying an individual in a message
dot-ids_in_data.aidRAll participant identifiers found in a list of standardized...
dot-is_carelink_format.aidRCheck if a file comes from a CareLink export
dot-is_dexcom_clarity_format.aidRCheck if a file comes from a Dexcom Clarity export
dot-is_glooko_file_type.aidRCheck if a Glooko file corresponds to a particular data type
dot-is_glooko_format.aidRCheck if a file comes from a Glooko export
dot-is_mylife_format.aidRCheck if a file comes from a mylife export
dot-is_numeric_col.aidRCheck if a vector can be converted to numeric values
dot-is_tandem_source_file_type.aidRCheck if a Tandem Source file corresponds to a particular...
dot-is_tandem_source_format.aidRCheck if a file comes from a Tandem Source export
dot-is_tidepool_format.aidRCheck if a file comes from a Tidepool export
dot-is_yourloops_format.aidRCheck if a file comes from a YourLoops export
dot-link_bolus_carbs_glooko.aidRLink boluses and carbohydrate entries of a Glooko bolus file
dot-link_bolus_carbs_tandem_source.aidRLink boluses and carbohydrate entries of a Tandem Source...
dot-link_bolus_carbs_tidepool.aidRLink boluses and carbohydrate entries of a Tidepool export
dot-log_removed.aidRStore removed rows with a reason
dot-match_types_before_merging.aidRMatch the column types of multiple data frames
dot-merge_by_type.aidRMerge all data available for one individual and one data type
dot-merge_per_id.aidRMerge all data available for one individual, separately per...
dot-merge_slow_carbs.aidRMerge slowly absorbed carbohydrates that Glooko split into...
dot-most_general_class.aidRDetermine the most general atomic type among a set of classes
dot-open_carelink_file.aidROpen a CareLink file
dot-plot_single_day.aidRDraw a single day of diabetes data for one individual
dot-prep_plot_data.aidRSelect the data of one individual and one day, for plotting
dot-process_file.aidRRead a single file and dispatch it to the matching format
dot-read_carelink_raw.aidRRead the raw content of a CareLink file, split into its...
dot-read_dexcom_clarity_files.aidRRead a file from a Dexcom Clarity export
dot-read_glooko_file.aidRRead the data from a Glooko file
dot-read_tandem_source_file.aidRRead the data from a Tandem file
dot-read_tidepool_sheet.aidRRead a sheet from a Tidepool Excel file
dot-read_yourloops_files.aidRRead a file from a YourLoops export
dot-rename_bolus_tandem_source.aidRRename bolus data from a Tandem Source export for easier...
dot-sort_by_time.aidRSort data frames of all data types according to timestamps
dot-spread_markers.aidRMove markers apart until they no longer overlap
dot-subset_by_id.aidRKeep the rows of one individual only, across all data types
dot-sum_or_na.aidRSum a vector, ignoring missing values
dot-total_basal_per_day.aidRTotal basal insulin delivered per day, summed over the...
dot-total_bolus_per_day.aidRTotal bolus insulin delivered per day, summed over the...
filter_carbsFilter carbohydrate entries
filter_CGMFilter CGM values
get_cgmquantify_formatConvert CGM data to a format compatible with the R-package...
get_iglu_formatConvert CGM data to a format compatible with the R-package...
merge_allMerge data available for all individuals, separately per data...
parse_dataParse data files for a given participant ID
plot_dayPlot one or more days of diabetes data for a single subject
read_carelinkRead a file from a CareLink export
read_dexcom_clarityRead a file from a Dexcom clarity export
read_glookoRead a file from a Glooko export
read_mylifeRead a file from a mylife export
read_tandem_sourceRead a file from a Tandem Source export
read_tidepoolRead a file from a Tidepool export
read_yourloopsRead a file from a YourLoops export
removed_entriesGet all entries removed during cleaning and filtering
write_DIAX_formatWrite AID data (CGM, basal, bolus, carbs and SMBG, where...
aidR documentation built on Oct. 28, 2026, 5:13 p.m.