Description Usage Arguments Value Examples
trim removes whitespace from the left and right side. Depricated with R v3.0.0 (trimws())
1 | trim(x, side = "both")
|
x |
string or vector of strings |
side |
Which side should be trimmed: 'both', 'left', or 'right' |
string or vector of strings
1 2 3 4 5 6 | #x = "bill "
#x2 = c("bill ", " bill", " bill ")
#trim(x)
#trim(x2)
#trim(x2, "left")
#trim(x2, "right")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.