Rdocumentation
powered by
Learn R Programming
x.ent (version 1.1.7)
trim:
Description
Remove all spaces from text except for single spaces between words
Usage
trim(x)
Arguments
x
is a string that we want to delete whitespace from both sides
Examples
Run this code
str =
" Hello World! "
trim(str)
Run the code above in your browser using
DataLab