Rename columns of an IEA data frame
rename_iea_df_cols.RdThe IEA data has columns named COUNTRY, FLOW, and PRODUCT.
This function turns off the shouting,
renaming the columns (by default) to Country, Flow, and Product.
Arguments
- .iea_df
a data frame produced by
iea_df()- country
the original name for the country column. (Default is
COUNTRY.)- new_country
the new name for the country column. (Default is
IEATools::iea_cols$country.)- flow
the original name for the flow column. (Default is
FLOW.)- new_flow
the new name for the flow column. (Default is
IEATools::iea_cols$flow.)- product
the original name for the product column. (Default is
PRODUCT.)- new_product
the new name for the product column. (Default is
IEATools::iea_cols$product.)