View source: R/helper_functions.R
| interpolate_exponential | R Documentation | 
Exponentially interpolate around two data points
interpolate_exponential(p1, p2, t1, t2, t0)
| 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) | 
This function first calculates the implied exponential growth rate between two points, and then predicts where the function would be in the intermediate year.
calc_exprate
interpolate_exponential(10, 12, 2010, 2040, 2020)
interpolate_exponential(10, 12, 2010, 2040, 2008)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.