computeRtrim: Trims string on right side

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xpssComputeStrings.R

Description

Helper Function for xpssCompute. R Implementation of the SPSS RTRIM Function.

Usage

1
computeRtrim (x,trim = NULL)

Arguments

x

input character vector

trim

single quoted character or an expression that yields a single character.

Value

String. Returns the input string removed by trim on the right. If trim is not specified, trailing blanks are removed.

Author(s)

Bastian Wiessner

See Also

str_trim

Examples

1
xpssCompute(x="inputstring          ", fun="computeLtrim")

translateSPSS2R documentation built on May 30, 2017, 4:31 a.m.