narunmed: NA-tolerant running median

Description Usage Arguments Value

Description

A serialising function that applies the runmed function to each consecutive stretch of non-NA values in a numeric vector.

Usage

1
narunmed(xin, w)

Arguments

xin

a numeric vector.

w

the (odd numbered) median window to be passed to runmed.

Value

A vector with the same size and structure as the original (reconstructed by plonking NAs appropriately) but running median-filtered values.


PaolaCognigni/CTraxHelper documentation built on May 7, 2019, 11:57 p.m.