Clean whitespace from Flow and Product strings
clean_iea_whitespace.Rd
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.
Examples
data.frame(Flow = " a flow ", Product = " a product ", stringsAsFactors = FALSE) %>%
clean_iea_whitespace()
#> Flow Product
#> 1 a flow a product