import_CPI: Import CPI data from an Excel file

View source: R/import_CPI.R

import_CPIR Documentation

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)

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.

Value

A processed data frame containing CPI data.


carbonr documentation built on Oct. 17, 2024, 1:06 a.m.