Learn R Programming

translateSPSS2R (version 1.0.0)

computeLtrim: Trims string on left side

Description

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

Usage

computeLtrim (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 left. If trim is not specified, leading 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