Obviously there are NA values. I have been using the prophet package to build some forecast models which handles NA values without an issue. There are likely outliers in my datasets that I would like to leverage anomalize. However, there are various NA values that cause an error to be through with the first time_decompose function. For example
tmp %>%
time_decompose(y)
Converting from tbl_df to tbl_time.
Auto-index message: index = ds
frequency = 1 days
trend = 6 days
Error in na.fail.default(as.ts(x)) : missing values in object
My dataset is much larger but this error is trivially reproduced with the following sample data.
Obviously there are
NA
values. I have been using the prophet package to build some forecast models which handlesNA
values without an issue. There are likely outliers in my datasets that I would like to leverageanomalize
. However, there are variousNA
values that cause an error to be through with the firsttime_decompose
function. For exampleThoughts on how to address this?