R/lipd.manipulation.R
alignTimeseriesBin.Rd
Use this to put two timeseries on different timesteps onto equivalent bins
alignTimeseriesBin(
time.1,
values.1,
time.2,
values.2,
bin.vec = NA,
bin.step = NA,
bin.fun = mean,
max.ens = NA,
min.obs = 10
)
matrix of age/time ensembles, or single column
matrix of values ensembles, or single column
matrix of age/time ensembles, or single column
matrix of values ensembles, or single column
vector of bin edges for binning step
spacing of bins, used to build bin step
function to use during binning (mean, sd, and sum all work)
maximum number of ensemble members to regress
minimum number of points required to calculate regression
list of binned data output:
binX: binned values from X
binY: binned values from Y
bin.step: interval of the binning
yearBins: bins along time