computeLtrim: Trims string on left 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 LTRIM Function.

Usage

1
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.

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.