computeChar_length: Length of a string in characters

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xpssComputeStrings.R

Description

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

Usage

1
computeChar_length (x)

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

translateSPSS2R documentation built on May 30, 2017, 4:31 a.m.