Here mydata
zem=zem = read.table(
V1
75
74,7
74,4
74,1
73,8
75,5
73,3
73,1
72,9
73
72,8
72,3
72,1
71,9
71,7
71,6
71,3
71,4
71,3
71,2
71,1
70
69,5
69
68,5)
I want detect anomaly value. So i decided use library(anomalize).
Code below
library(anomalize) #tidy anomaly detectiom
library(tidyverse) #tidyverse packages like dplyr, ggplot, tidyr
zem %>%
time_decompose(V1) %>%
anomalize(remainder) %>%
time_recompose() %>%
filter(anomaly == 'Yes')
an i get the error
Error: Error time_decompose(): Object is not of class tbl_df or tbl_time.
What's wrong? How can i get desired result?
V1 Anomaly
1 75.0 no
2 74.7 no
3 74.4 no
4 74.1 no
5 73.8 no
6 75.5 yes
7 73.3 no
8 73.1 no
9 72.9 no
10 73.0 no
11 72.8 no
12 72.3 no
13 72.1 no
14 71.9 no
15 71.7 no
16 71.6 no
17 71.3 no
18 71.4 no
19 71.3 no
20 71.2 no
21 71.1 no
22 70.0 no
23 69.5 no
24 69.0 no
25 68.5 no
i just tried modify this code for my task
https://towardsdatascience.com/tidy-anomaly-detection-using-r-82a0c776d523
