computeStrunc: Truncating strings

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xpssComputeStrings.R

Description

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

Usage

1
computeStrunc (x, length = NULL)

Arguments

x

input character vector.

length

length x is truncated to

Value

String. Returns x truncated to length (in bytes) and trimmed of remaining blanks.

Author(s)

Bastian Wiessner

See Also

str_sub

Examples

1
xpssCompute(x="Hello    ", fun="computeStrunc", length=7)

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