strip {clim.pact}R Documentation

String operation functions

Description

The function strips off trailing space (strips the strings by cutting off at the first space).

Usage

strip(string.array

Arguments

string.array Strings or arrays of strings.

Value

converted strings or arrays of strings.

Author(s)

R.E. Benestad

Examples

       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"

[Package Contents]