rescale_time: Functino to rescale between time-scales.

Description Usage Arguments Details Value

View source: R/rescale_time.R

Description

This function takes the time-points x which belong to scale1 and rescales them to scale 2. Scale1 and scale2 are two sets of ordered boundaries.

Usage

1
rescale_time(scale1, scale2, x)

Arguments

scale1

scale on which the times in x lie

scale2

scale on which the times x should be changed into

x

times of observations on scale1

Details

This function can be used to change a time on Gradstein 2004 to Gradstein 2012 for instance.

Value

x_new - x on scale 2


josteist/Compadre documentation built on June 3, 2021, 1:02 p.m.