| ts_extract | R Documentation |
This function processes an input dataset by reshaping it from wide to long format, separating columns into descriptions and dates, and renaming the resulting dataset for further analysis.
ts_extract(output, ID)
output |
A data frame containing the time series data in wide format. It must have a column with the name matching |
ID |
A character string specifying the column name that uniquely identifies rows in the dataset. |
A transformed data frame with the following changes:
The variable names extracted from the original column names.
A Date column converted from the original column names.
The associated values for each combination of ID, description, and Date.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.