My data is in column. I need to scan every 3 rows and come out with the maximum values. It's kind of moving average techniques but I dont want the data to be averaged. Maximum values is my major concern.
e.g 29.66, 29.59, 30.05 = maximum is 30.05
then move to 29.59, 29.59, 30.05 = maximum is 30.05
How to do that in R-software?
29.66
29.59
30.05
29.59
29.59
30.05
29.59
29.92
30.26
30.18
30.47
See Question&Answers more detail:os