Then I call the function as follows and I get the displaying error:
my_df <- CleaningAnomalies(my_df, 0.05, 0.2)
Error: Class 'character' is not a known index class.
In addition: Warning messages:
1: In to_posixct_numeric.default(index) : NAs introduced by coercion
2: In to_posixct_numeric.default(index) : NAs introduced by coercion
Called from: glue_stop("Class '{class(x)}' is not a known index class.")
Whenever I apply the pipe directly it works like charm. When I try to debug it appears that it fails in the following step:
Dear colleagues,
I am trying to wrap the Anomalize pipeline in a custom function that I want to apply interactively to compare the input with a classification method.
The function is as follows:
Then I call the function as follows and I get the displaying error:
Whenever I apply the pipe directly it works like charm. When I try to debug it appears that it fails in the following step:
Does someone have any idea of why this is happening?