as.ts.tbl_ts {tsibble} | R Documentation |
Coerce a tsibble to a time series
Description
Usage
## S3 method for class 'tbl_ts'
as.ts(x, value, frequency = NULL, fill = NA_real_, ...)
Arguments
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. |
Value
A ts
object.
Examples
# a monthly series
x1 <- as_tsibble(AirPassengers)
as.ts(x1)
[Package tsibble version 1.1.5 Index]