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(in.str)

Arguments

in.str 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 clim.pact version 2.2-15 Index]