alignTimeseriesBin: Align and bin two timeseries into comparable bins

View source: R/lipd.manipulation.R

alignTimeseriesBinR Documentation

Align and bin two timeseries into comparable bins

Description

Use this to put two timeseries on different timesteps onto equivalent bins

Usage

alignTimeseriesBin(
  time.1,
  values.1,
  time.2,
  values.2,
  bin.vec = NA,
  bin.step = NA,
  bin.fun = mean,
  max.ens = NA,
  min.obs = 10
)

Arguments

time.1

matrix of age/time ensembles, or single column

values.1

matrix of values ensembles, or single column

time.2

matrix of age/time ensembles, or single column

values.2

matrix of values ensembles, or single column

bin.vec

vector of bin edges for binning step

bin.step

spacing of bins, used to build bin step

bin.fun

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

max.ens

maximum number of ensemble members to regress

min.obs

minimum number of points required to calculate regression

Value

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

Author(s)

Nick McKay

See Also

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


nickmckay/GeoChronR documentation built on March 28, 2024, 8:23 p.m.