computeLength: Number of bytes in a string

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xpssComputeStrings.R

Description

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

Usage

1
computeLength (x)

Arguments

x

character or character vector.

Value

Numeric. Returns the length of x in bytes, including all trailing blanks.

Author(s)

Bastian Wiessner

See Also

nchar

Examples

1
2
3
xpssCompute(x="trailing blanks matter",fun="computeLength")
xpssCompute(x="trailing blanks matter                      ",fun="computeLength")
xpssCompute(x="                      trailing blanks matter",fun="computeLength")

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