Trims white space from a character vector

trim(x)

Arguments

x

String or character vector

Value

Returns x without any white spaces

Examples

trim("A B")
#> [1] "AB"