interpolate_exponential: Exponentially interpolate around two data points

View source: R/helper_functions.R

interpolate_exponentialR Documentation

Exponentially interpolate around two data points

Description

Exponentially interpolate around two data points

Usage

interpolate_exponential(p1, p2, t1, t2, t0)

Arguments

p1

Value in period 1

p2

Value in period 2

t1

Time step for period 1 (i.e., 2010)

t2

Time step for period 2 (i.e., 2040)

t0

The timepoint for interpolation (or extrapolation)

Details

This function first calculates the implied exponential growth rate between two points, and then predicts where the function would be in the intermediate year.

See Also

calc_exprate

Examples

interpolate_exponential(10, 12, 2010, 2040, 2020)
interpolate_exponential(10, 12, 2010, 2040, 2008)

pbsag/swimr documentation built on July 4, 2025, 12:10 p.m.