takes ensembles in time and/or values and creates a matrix of data for future analysis

binEns(time, values, bin.vec, bin.fun = mean, max.ens = NA)

Arguments

time

single column vector of time

values

single column vector of values to bin

bin.vec

vector of bin edges for binning step

bin.fun

function to use during binning (mean, sd, and sum all work)

max.ens

maximum number of ensemble members to regress

Value

list that includes matrix of binned data and binned time

See also

Other bin: alignTimeseriesBin(), bin(), bin2d(), binTs()