fp | R Documentation |
For a yearly data calculates a serie in fixed prices at base years price level for series in current prices and previous year's prices.
fp(cp, pp, time, year)
cp |
a current price variable. |
pp |
a previous year price variable. |
time |
a variable for years. |
year |
a numeric for a base year. |
an vector.
fp(cp = c(1, 2, 3), pp = c(NA, NA, NA), time = c(2014,2015,2016), year = 2015)
fp(cp = c(1, 2, 3), pp = c(1, 2, 4), time = c(2014,2015,2016), year = 2015)
fp(cp = c(1, 2, 3), pp = c(NA, 2, 4), time = c(2014,2015,2016), year = 2015)
fp(cp = c(NA, 2, 3), pp = c(NA, NA, 4), time = c(2014,2015,2016), year = 2015)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.