newTax | R Documentation |
Taxes are used to represent the financial levy imposed on production, consumption, or balance of a commodity.
newTax(
name,
desc = "",
comm = "",
region = character(),
defVal = 0,
tax = data.frame(),
misc = list(),
...
)
name |
character. Name of the tax object, used in sets. |
desc |
character. Description of the tax object. |
comm |
character. Name of the taxed commodity. |
region |
character. Region where the tax is applied. |
defVal |
numeric. Default value of the tax for not specified sets, 0 if not specified. |
tax |
data.frame. Tax values.
|
misc |
list. Additional information. |
An object of class tax
Other class constraint policy:
class-constraint
,
class-costs
,
newConstraint()
,
newCosts()
,
newSubsidy()
,
subsidy-class
,
tax-class
CO2TAX <- newTax(
name = "CO2TAX",
desc = "Tax on net CO2 emissions",
comm = "CO2",
region = "R1",
defVal = 0,
tax = data.frame(
# region = "R1", # not required when @region is set
year = c(2030, 2040, 2050),
bal = c(10, 50, 200) # $10, $50, $200 per ton, will be interpolated
# out = ... use to tax output commodity
# inp = ... use to tax input commodity
),
misc = list(
source = "https://www.example.com/tax"
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.