Learn R Programming

carbonr (version 0.2.1)

import_CPI: Import CPI data from an Excel file

Description

This function uses the downloaded data from the World Bank Carbon Pricing Dashboard (https://carbonpricingdashboard.worldbank.org/). It imports data from an Excel file containing CPI (Carbon Price Index) data. It filters the data for ETS (Emissions Trading Scheme) instruments, performs necessary transformations, and returns a processed data frame.

Usage

import_CPI(path, sheet = "Data_Price", skip = 2)

Value

A processed data frame containing CPI data.

Arguments

path

A character string specifying the file path of the Excel file.

sheet

A character string specifying the name of the sheet in the Excel file to read data from.

skip

An integer specifying the number of rows to skip while reading the Excel sheet.