meanSmoother: Windowed mean smoother

Description Usage Arguments Value Examples

View source: R/meanSmoother.R

Description

Windowed mean smoother

Usage

1
meanSmoother(x, k = 1, iter = 2, na.rm = TRUE)

Arguments

x

Input data matrix where samples are columns and regions/loci are rows

k

The number of windows to use (k=1 is 3 windows and k=2 is 5 windows)

iter

The number of iterations to smooth

na.rm

Whether to remove NAs prior to smoothing

Value

Smoothed data matrix

Examples

1
2
dummy <- matrix(rnorm(10000), ncol=25)
smooth.dummy <- meanSmoother(dummy)

JordanVeldboom/compartmap documentation built on July 3, 2020, 6:32 p.m.