df_to_xts | R Documentation |
The data.frame must have a time based Date or POSIXct column along
with one or more data columns. Function returns an xts
time object.
df_to_xts(df, time_col, data_cols)
df |
A data.frame containing time and data columns |
time_col |
A string that is the name for the time column from |
data_cols |
A string or vector string containing the name(s) of data columns from |
An xts
time series object
Rick Dean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.