strip {clim.pact} | R Documentation |
The function strips off trailing space (strips the strings by cutting off at the first space).
strip(in.str)
in.str |
Strings or arrays of strings. |
converted strings or arrays of strings.
R.E. Benestad
print(upper.case(c("qwerty e","asdf rT"))) # "QWERTY" "ASDF" print(lower.case(c("QWERTY","ASDF"))) # "qwErty" "asdf" print(strip(c("Hello there!","Oslo"," ","NA "))) # "Hello" "Oslo" " " "NA"