Description Usage Arguments Value Examples
Supposing you have read in a data file that has the first column containing dates followed by subsequent columns of asset returns, this function will convert that dataframe into an xts object suitable for analysis with xts based analysis routines, like PerformanceAnalytics.
1 |
x |
a data frame of returns with the first column a date column labeled 'Date'. |
format |
a recognized date format. Defaults to "Y-m-d" format. |
names |
a vector of names for each of the columns, excluding the date column. Defaults to the colnames of the dataframe x[2:ncol(x)]. |
an xts object based on x.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.