append_dailies | R Documentation |
Function to add daily data to WRAP data for a list of daily variables
append_dailies(data, wrap, dailies)
data |
A data frame in wide format containing multiple daily variables. This data must include an ID variable named 'id' with integer values starting at 1 to match the default ID variable naming used by WRAP. |
wrap |
WRAP data produced by 'read_wraps' (e.g., sleep, activity, or stress) |
dailies |
A list of daily variable names 'e.g., list(c(x_1, x_2, ..., x_t), c(y_1, y_2, ..., y_2))' where names are in the format 'varName_#', where '#' are integers that overlap with the range of values in the WRAP data variable 'time_days', e.g. 'range(sleep$time_days)'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.