ts1 <- ts(1:100, start = 2010L, frequency = 12L)
ts2 <- ts(1:10, start = c(2020L, 4L), frequency = 4L)
assert_ts(ts1)
assert_ts(ts2)
check_ts(ts1)
check_ts(ts2)
# Exemples avec des erreurs
check_ts(1)
check_ts(ts(1:10, start = 2010L, frequency = 2L))
check_ts(1:10)
Run the code above in your browser using DataLab