Fit an exponential function exp(-A*(x-x0)) to the last value (f(100) and f'(100) need to coincide):
fitExpExtrapolation(data, idx, up = TRUE, verbose = FALSE)
data.frame to which an exponential function should be fit
Index of the position of the fit
Whether the fit is forward- or backward-facing
Whether to include data about the fit in the output