Trims string on left side

Share:

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")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.