rmv.spc | R Documentation |
Remove leading and trailing spaces (or other character).
rmv.spc(str, before = TRUE, after = TRUE, char = " ")
str |
character vector, may containing leading or trailing chars |
before |
logical, whether to remove leading spaces |
after |
logical, whether to remove trailing spaces |
char |
an alternative character to be removed instead of spaces |
returns vectors without the leading/trailing characters
Nicholas Cooper njcooper@gmx.co.uk
spc
rmv.spc(" mid sentence ") rmv.spc("0012300",after=FALSE,char="0") rmv.spc(" change nothing ",after=FALSE,before=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.