computeChar_length: Length of a string in characters

Description

Helper Function for xpssCompute. R Implementation of the SPSS CHAR.LENGTH Function.

Usage

1

Arguments

x

atomic character or character vector.

Value

Numeric. Returns the length of x in characters, with any trailing blanks removed.

Author(s)

Bastian Wiessner

See Also

str_length

Examples

1
2
3
4
5
xpssCompute(x="            please remove trailing blanks",fun="computeChar_length")

xpssCompute(x="please remove trailing blanks",fun="computeChar_length")

xpssCompute(x=c("please","remove","trailing","blanks"),fun="computeChar_length")

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.