Hi everyone!
I would like to automatically filter out the values which are greater or less than 10% of their previous values. Is it possible to code in RStudio? Do you have any idea?
I have 30-min data for the whole day. I would like to filter the values in every next column by the values +/- 10% of those values in every previous column. In the morning, the values will increase according the values in the previous columns + 10% of those values, but in the afternoon, the values will decrease by - 10%. Something like that. Let me show the excel calculation as follow:
6:00 | 6:30 | 7:00 | 7:30 | 8:00 | 8:30 | 9:00 | 9:30 | 10:00 | 10:30 | 11:00 | 11:30 | 12:00 | 12:30 | 13:00 | 13:30 | 14:00 | 14:30 | 15:00 | 15:30 | 16:00 | 16:30 | 17:00 | 17:30 | 18:00 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10.00 | 11.00 | 12.10 | 13.31 | 14.64 | 16.11 | 17.72 | 19.49 | 21.44 | 23.58 | 25.94 | 11.00 | 12.10 | 10.89 | 9.80 | 8.82 | 7.94 | 7.14 | 6.43 | 5.79 | 5.21 | 4.69 | 4.22 | 3.80 | 3.42 |
I want to code like this in RStudio.
Thanks in advance!