Message-ID: <CAGgJW75VhudREc6x+eQ7s4QeFPJgUeOCh0MuJVX9gTz5PrM=bg@mail.gmail.com>
Date: 2024-07-28T06:47:25Z
From: Eric Berger
Subject: ts_regular....in tsbox
In-Reply-To: <PU4P216MB15680A9AA443D4F8FD32D510C8B62@PU4P216MB1568.KORP216.PROD.OUTLOOK.COM>
Did you try converting the date column to class Date? Does that work?
On Sun, Jul 28, 2024 at 7:40?AM akshay kulkarni <akshay_e4 at hotmail.com>
wrote:
> 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]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]