Learn R Programming

translateSPSS2R (version 1.0.0)

computeRtrim: Trims string on right side

Description

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

Usage

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.

See Also

str_trim

Examples

Run this code
xpssCompute(x="inputstring          ", fun="computeLtrim")

Run the code above in your browser using DataLab