ave.filter: Filters out null points in the matrix. Applies an average...

Description Usage Arguments Details Value

View source: R/functions.R

Description

Filters out null points in the matrix. Applies an average every to all the hits in the pileup.

Usage

1
ave.filter(input, aveType)

Arguments

input

a list of matrices of the same dimensions required

aveType

The type of average. 'mean' or 'median'.

Details

ave.filter <-function(input,aveType){

t1 = Filter(Negate(is.null), input)

output = aaply(laply(t1, as.matrix), c(2, 3), aveType,na.rm=TRUE)

return (output)

}

Value

A pileup of averaged values calculated from a list of matrices.


gb305/Rpackages documentation built on Feb. 18, 2020, 2:55 p.m.