movingMedian {eRTG3D} | R Documentation |
Applies a twosided moving median window on a vector, where the window paramter is the total size of the window. The value in the window middle is the index where the median of the window is written. Therefore the window size has to be an uneven number. The border region of the vetor is filled with a one-sided median. There might be border effects.
movingMedian(data, window)
data |
numeric vector |
window |
uneven number for the size of the moving window |
A numeric vector.
movingMedian(sequence(1:10), window = 5)