# \donttest{
### Create an example data file
a <- 1:12
b <- 21:32
tp <- seq(from = as.Date("2020-01-01"), to = as.Date("2020-12-01"), by = "month")
df <- data.frame(
Time = tp,
a = a,
b = b
)
file <- file.path(tempdir(), "ExampleFile.csv")
write.table(df, file = file, quote = FALSE, sep = ",",
row.names = FALSE, col.names = TRUE)
### Use the function to read in the data
xt <- read_ts(file)
xt
# }
Run the code above in your browser using DataLab