View source: R/carbon_price_credit.R
carbon_price_credit | R Documentation |
This function calculates the carbon price credit for a given jurisdiction, year, period, and CO2e value. It uses CPI (Carbon Price Index) data to determine the carbon price for the specified jurisdiction and time period. The carbon price credit is calculated by multiplying the CO2e value by the corresponding carbon price.
carbon_price_credit(
jurisdiction = NULL,
year = NULL,
period = 0,
manual_price = NULL,
co2e_val
)
jurisdiction |
A character string specifying the jurisdiction for which the carbon price credit should be calculated. |
year |
An optional numeric value specifying the year for which the carbon price credit should be calculated.
If |
period |
An optional numeric value specifying the period within the specified year for which the carbon price credit should be calculated.
If |
manual_price |
An option to manually input a carbon price index to override the value in the World Bank Data. This should be a value of the carbon credit price per tCO2e. |
co2e_val |
A numeric value specifying the CO2e (carbon dioxide equivalent) value for which the carbon price credit should be calculated. |
The calculated carbon price credit in USD ($).
# Calculate carbon price credit for the United Kingdom in the year 2000,
# period 2, and CO2e value of 100
carbon_price_credit("United Kingdom", 2022, 2, co2e_val = 100)
# Or manually enter a value
carbon_price_credit(manual_price = 66.9, co2e_val = 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.