as.ts.tbl_ts | R Documentation |
## S3 method for class 'tbl_ts'
as.ts(x, value, frequency = NULL, fill = NA_real_, ...)
x |
A |
value |
A measured variable of interest to be spread over columns, if multiple measures. |
frequency |
A smart frequency with the default |
fill |
A value to replace missing values. |
... |
Ignored for the function. |
A ts
object.
# a monthly series
x1 <- as_tsibble(AirPassengers)
as.ts(x1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.