Description Usage Arguments Examples
View source: R/FishEconProdOutput.R
Tornqvist Price Index Base Year Function
1 | tornb(dat, Year = "Year", pvar = "p", vvar = "v", prodID = "prod", baseyr)
|
dat |
The dataset you would like to use. |
Year |
Name of the column holding year data. |
pvar |
Name of the column holding price data. |
vvar |
Name of the column holding value data. |
prodID |
Name of the column holding prodID data. |
baseyr |
The year dollar values need to be in. |
1 2 3 4 5 6 7 8 9 10 | tornb(dat = data.frame("Year" = c(2001:2020, 2001:2020, 2001:2020, 2001:2020),
"p" = rnorm(n = 80, mean = 1, sd = .1),
"v" = rnorm(n = 80, mean = 500, sd = 300),
"prod" = c(rep_len("A", 20), rep_len("B", 20),
rep_len("C", 20), rep_len("D", 20))),
Year = "Year",
pvar = "p",
vvar = "v",
prodID = "prod",
baseyr = 2015)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.