matrixReduce: Reduce matrix

Description Usage Arguments Value

View source: R/gene-smooth.R

Description

This takes a matrix/data.frame and combines all columns with the same column name (for instance, the same pseudotime) using agg.fun, which defaults to mean.

Usage

1
matrixReduce(m, agg.func = mean)

Arguments

m

(data.frame or Matrix) Input

agg.func

(function) Function to use to aggregate columns with same colname. Default is mean.

Value

(data.frame) Input with columns with same colname aggregated.


farrellja/URD documentation built on June 17, 2020, 4:48 a.m.