clean.mylife: Format and clean the mylife data to keep relevant columns...

View source: R/01d_mylife.R

clean.mylifeR Documentation

Format and clean the mylife data to keep relevant columns only

Description

The entry types are identified by their unit, since their labels are language-specific. Note that a mylife export contains no CGM and no basal data.

Usage

## S3 method for class 'mylife'
clean(data, id, ...)

Arguments

data

An instance of class mylife, wrapping a named list with data of different types.

id

Character or numeric participant identifier.

...

Additional arguments passed to methods.

Value

A named list with the cleaned data, with entries bolus, carbs and SMBG. Entries are NULL if the export holds no data of that type.


aidR documentation built on Oct. 28, 2026, 5:13 p.m.