rename_iea_df_cols | R Documentation |
The 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
.
rename_iea_df_cols(
.iea_df,
country = "COUNTRY",
new_country = IEATools::iea_cols$country,
flow = "FLOW",
new_flow = IEATools::iea_cols$flow,
product = "PRODUCT",
new_product = IEATools::iea_cols$product
)
.iea_df |
a data frame produced by |
country |
the original name for the country column. (Default is |
new_country |
the new name for the country column. (Default is |
flow |
the original name for the flow column. (Default is |
new_flow |
the new name for the flow column. (Default is |
product |
the original name for the product column. (Default is |
new_product |
the new name for the product column. (Default is |
.iea_df
with renamed columns
iea_df(text = ",,TIME,1960,1961\nCOUNTRY,FLOW,PRODUCT\nWorld,Production,Hard coal,42,43") %>%
rename_iea_df_cols()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.