[R] ts_regular....in tsbox
akshay kulkarni
@k@h@y_e4 @end|ng |rom hotm@||@com
Sun Jul 28 06:39:47 CEST 2024
dear members,
I have a data frame which contains, among others, a date object of monthly frequency which is not regular, i.e some months are omitted, and the main variable to be forecast, among others. Its name is vesselB.
I did the following code:
vesselBR <- ts_regular(vesselB)
but the missing months are not filled with NA. What should I do to insert NAs into the missing months? THe date column is of character class; should I make it Date class? Any other trick?
THanking you,
Yours sincerely,
AKSHAY M KULKARNI
[[alternative HTML version deleted]]
More information about the R-help
mailing list