`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
)
```

- 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

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