Learn R Programming

carbonr (version 0.2.1)

check_CPI: Check which jurisdictions are in the Carbon Credits data

Description

Find jurisdictions available in the Carbon Credits data. If a jurisdiction is specified, find the years associated with that jurisdiction.

Usage

check_CPI(jurisdiction = NULL, period = FALSE)

Value

A vector or data frame containing the information.

Arguments

jurisdiction

(optional) A character string specifying the jurisdiction to filter the data by.

period

(logical) If TRUE, include the Period column in the output data frame.

Examples

Run this code
which_jur <- check_CPI()
which_years <- check_CPI(jurisdiction = "Switzerland")
which_years_and_period <- check_CPI(jurisdiction = "Switzerland", period = TRUE)

Run the code above in your browser using DataLab