to.long | R Documentation |
This function helps you convert a wide time-series data set (with one row for each patient and multiple columns for each different time points), to a long time-series data set (with t rows for each patient where t=number of time poitns).
to.long(data, id_column, time_columns, date_columns)
data |
enter data set containing month values. |
id_column |
enter the column containing patient IDs (str) |
time_columns |
enter the time-varying outcome variable columns |
date_columns |
enter the time-indicating month-formatted columns (str) |
to.long()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.