powered by
This function removes redundant spaces from character vectors
strip_spaces(x)
character vector
character vector without trailing or multiple spaces
stopifnot(confidence:::strip_spaces(" Hello World ") == "Hello World")
Run the code above in your browser using DataLab