Anomalize error
HeinrichMuller opened this issue · comments
Hi Matt
I am a newbie to R.
I have tried to run the code from your page https://business-science.github.io/anomalize/ but I just cannot get it to work.
I can install all the packages i need but keep getting an error when i want to view tidyverse_cran_downloads: Error: expr must quote a symbol, scalar, or call
Below are my initial steps:
##################################################
Step 1: Install Anomalize
devtools::install_github("business-science/anomalize",force = TRUE)
install.packages("tibbletime")
Step 2: Load Tidyverse and Anomalize
library(tidyverse)
library(anomalize)
library(tibbletime)
check tidyverse data()
tidyverse_cran_downloads
###############################################
I Have tried to update tibbletime as suggested but it does not work.
Can you please help me resolve this issue.
Kind regards
Heinrich
Out of pure frustration I decided to take a very basic data set and see if I could apply the Anomalize package. I have created a time-tbl with traffic data that looks like this:
I use the following code to visualize the data:
visualise Data
traffic_data %>%
ggplot(aes(date, value)) +
geom_point(color = "#2c3e50", alpha = 0.25) +
theme_minimal() +
theme(axis.text.x = element_text(angle = 30, hjust = 1))
When I try to run the following code:
Anomalize data
tbl_time_anomalized <- tbl1_time %>%
time_decompose(count, merge = TRUE) %>%
anomalize(remainder) %>%
time_recompose()
I get the following error: Error: 'get_index_col' is not an exported object from 'namespace:tibbletime'
Any suggestions?
kind regards
Heinrich Muller