| .create_link_id.aidR | R Documentation |
Some exports record which carbohydrate entry triggered which bolus based on
information from the bolus calculator. To keep this link after splitting the
data when cleaning, a unique identifier is created that is stored in both
bolus and carbs (no link is encoded as NA).
.create_link_id.aidR(id, ..., linked = TRUE)
id |
Participant identifier. |
... |
One or more vectors of equal length, with one element per event, which together describe the event. |
linked |
Logical vector with one element per event (or a single value),
|
The key is built from the content of the event and consists of the
participant id and the fields passed in ...
(e.g. timestamp and amounts), separated by "|". Events that are
identical in all fields are numbered in the order they appear in the export,
which makes the key unique by construction. Identifiers given by the export
are only used to find out which entries belong together, never as the key
itself.
A character vector with one key per event, NA where
linked is not TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.