
Last chance! 50% off unlimited learning
Sale ends in
# S3 method for tbl_ts
as.ts(x, value, frequency = NULL, fill = NA_real_, ...)
A ts
object.
A tbl_ts
object.
A measured variable of interest to be spread over columns, if multiple measures.
A smart frequency with the default NULL
. If set, the
preferred frequency is passed to ts()
.
A value to replace missing values.
Ignored for the function.
# a monthly series
x1 <- as_tsibble(AirPassengers)
as.ts(x1)
Run the code above in your browser using DataLab