clean_iea_whitespace | R Documentation |
Occasionally, in the IEA extended energy balance data,
extra whitespace characters are found at the beginning or end of Flow
and Product
strings.
This function removes all leading and trailing whitespece.
clean_iea_whitespace(
.iea_df,
flow = IEATools::iea_cols$flow,
product = IEATools::iea_cols$product
)
.iea_df |
A data frame containing |
flow |
The name of the flow column in |
product |
The name of the product columns in |
.iea_df
with leading and trailing whitespace removed from Flow
and Product
column strings
data.frame(Flow = " a flow ", Product = " a product ", stringsAsFactors = FALSE) %>%
clean_iea_whitespace()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.