R/utilities.R
clean_str.RdClean leading and trailing whitespaces from a given string. Additionally, all occurrences of multiple whitespaces are replaced with a single whitespace.
clean_str(x)
| x | Character string. |
|---|
An absolute path to a file of NULL if the path does not exist.