tsconvert.tsmodel.distribution | R Documentation |
Converts an object of class “tsmodel.distribution” or “tsmodel.distribution_list” to a long form data.table object.
## S3 method for class 'tsmodel.distribution'
tsconvert(object, to = "data.table", name = NULL, ...)
## S3 method for class 'tsmodel.distribution_list'
tsconvert(object, to = "data.table", ...)
object |
a “tsmodel.distribution” or “tsmodel.distribution_list” object. |
to |
output format. Currently only “data.table” supported. |
name |
an optional string for the name of the series which will be added to the table (only for the “tsmodel.distribution”, as the list object is already validated with names). |
... |
not currently used. |
a data.table object
x1 <- matrix(rnorm(100), 10, 10)
colnames(x1) <- as.character(as.Date(1:10, origin = "1970-01-01"))
class(x1) <- "tsmodel.distribution"
head(tsconvert(x1, name = "SeriesA"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.