We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, Let's clean the anomalies of a given dataset:
data(tidyverse_cran_downloads) cleaned <- tidyverse_cran_downloads |> anomalize::time_decompose(count, method = "stl") |> anomalize::anomalize(remainder, method = "iqr") |> anomalize::clean_anomalies()
The output is a time tibble. Now if you extend these time series by 12 points:
cleaned |> dplyr::group_by(package) |> timetk::future_frame( .date_var = date , .length_out = 12, .bind_data = FALSE ) |> dplyr::ungroup()
You get:
Error in `tbl_at_vars()`: ! Can't subset columns that don't exist. ✖ Column `package` doesn't exist.
This error can be solved by ensuring that cleaned is a tibble before extending the dataframe:
cleaned
cleaned |> as_tibble() |> dplyr::group_by(package) |> timetk::future_frame( .date_var = date , .length_out = 12, .bind_data = FALSE ) |> dplyr::ungroup()
Thank you Matt!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
Let's clean the anomalies of a given dataset:
The output is a time tibble. Now if you extend these time series by 12 points:
You get:
This error can be solved by ensuring that
cleaned
is a tibble before extending the dataframe:Thank you Matt!
The text was updated successfully, but these errors were encountered: