powered by
transform data in 'x' corresponding to dates in 'dates' to ts() format
to_ts(x, dates)
data
dates
data in ts() format
# NOT RUN { x <- c(1,2,3,4) dates <- as.Date(c("2020-1-1","2020-2-1","2020-3-1","2020-4-1")) to_ts(x, dates) # }
Run the code above in your browser using DataLab