View source: R/funcs_do_calculation.R
calculate.pd | R Documentation |
Calculate percentage decline and return unrounded results
calculate.pd(dt, year1, year2)
dt |
wide data by year, year1 and year2 shall be columns like 1990, 2000 |
year1 |
year1 where year1 < year2 |
year2 |
year2 where year1 < year2 |
dt with added columns named like "PD1990-2000"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.