# Create example zoo-object
tp <- seq(from = as.Date("2020-01-01"), to = as.Date("2020-10-01"), by = "month")
xt <- zoo::zoo(1:10, order.by = tp)
xt
# Transform into ts-object
yt <- zoo_to_ts(xt)
yt
Run the code above in your browser using DataLab