create_agg_cru_cy_df: Create a dataframe containing multiple cru_cy metrics

Description Usage Arguments Value

View source: R/tidy_functions.R

Description

Reads all cru_cy (Climate Research Unit Country) files for a multiple metrics and binds to create a single tibble. Data is drawn from a directory supplied by the user, likely created through the down_cru_cy_files function.

Usage

1
create_agg_cru_cy_df(agg_cru_cy_folder, agg_cru_cy_metrics, agg_cru_cy_year)

Arguments

agg_cru_cy_folder

path to a folder contains all cru_cy data folders, passed to the cru_cy_folder argument in read_cru_cy_files

agg_cru_cy_metrics

a character string of metrics which is iterated over with read_cru_cy_files using lapply

agg_cru_cy_year

identifies the year of the CEDA data to loaded, passed to the cru_cy_year argument in read_cru_cy_files

Value

a tibble with five columns: Country, Metric, Year, Month, Value. In contrast to read_cru_cy_files there may be multiple metrics if length(agg_cru_cy_metrics) > 1.


EnergyEconomyDecoupling/CEDATools documentation built on Dec. 30, 2021, 12:15 a.m.