runningFunction: Generic function for running means/medians etc across 2D data

View source: R/yogitools.R

runningFunctionR Documentation

Generic function for running means/medians etc across 2D data

Description

Generic function for running means/medians etc across 2D data

Usage

runningFunction(x, y, nbins, fun = mean, logScale = FALSE)

Arguments

x

the axis over which bins will be formed

y

the dimension on which the function 'fun' is applied

nbins

The number of bins to use

fun

the function that will be applied to the y values in each bin

logScale

whether or not bin-size will be at log scale across x

width

the width of the bins

Value

a matrix with two columns: bin centroid, and value of fun


jweile/yogitools documentation built on May 11, 2023, 7:42 p.m.