I have a time-series data with corresponding variable with either increase or decrease from the previous value within some range say +- 10%. There are data points within the time-series that does not go along the previous or later values in the time-series.
For example:
time v1
13:01:30 0.689
13:01:31 0.697
13:01:32 0.701
13:01:33 0.713
**13:01:34 0.235**
13:01:35 0.799
13:01:36 0.813
13:01:37 0.822
**13:01:38 0**
13:01:39 0.865
13:01:40 0.869
Is there any library that might help in identifying these outlier values[0.235 and 0 in data] in R?
update - output of dput
:
structure(list(time = c("13:01:30", "13:01:31", "13:01:32", "13:01:33",
"13:01:34", "13:01:35", "13:01:36", "13:01:37", "13:01:38", "13:01:39",
"13:01:40"), v1 = c(0.689, 0.697, 0.701, 0.713, 0.235, 0.799,
0.813, 0.822, 0, 0.865, 0.869)), .Names = c("time", "v1"), row.names = c(NA,
11L), class = c("tbl_df", "tbl", "data.frame"))