How can I create an exponential percentage column in a data frame between the years 2022 and 2040 which is bound by the range 1% and x% where I can set the "peak" of the exponential equation?
In the expected outcome table below, the percentage starts to increase by 1%, then 2%... then "peaks" at a growth rate of 5% between 25%-35%, then decreases back to 2-3% growth rate.
Here's an example of what I would like to accomplish:
Example Outcome
end_growth_rate <- 48
2022 1%
2023 2%
2024 3%
2025 4%
2026 6%
2027 8%
2028 10%
2029 12%
2030 15%
2031 18%
2032 21%
2033 25%
2034 30%
2035 35%
2036 39%
2037 42%
2038 44%
2039 46%
2040 48%
Thanks a lot for any help! Much appreciated! Happy to explain more if any clarification is required.