Description Usage Arguments Details Value
The function allows to split by a single factor variable. More factors as well as factor interactions are currently not supported.
1 | linelist2xts(formula, dateProjFun = identity, dRange = NULL, data)
|
formula |
Formula of type LHSVar ~ RHSVar, where LHSVar is a column of class Dates and RHSVar is a column containing a factor variable |
dateProjFun |
Date projection function, i.e. how are dates projected down (i.e. monday, start of month, etc.). Result must be a Date again! |
dRange |
Vector of length two giving the start and stop dates, the actual range will be range(dateProjFun(dRange)). |
data |
data.frame containing the LHSVar RHSVar variables. |
The formula has to be of the type LHSVar ~ RHSVar, where LHSVar is a column of class Dates and RHSVar is a column containing a factor variable. Currently, the formula is unrwapped manually. A better solution is to use formula syntax. Note: A multivariate time series for all levels of RHSVar (including NA if present) is generated.
xts time series
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.