computeChar_substr: creates a substring

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.SUBSTR Function.

Usage

1
computeChar_substr (x,pos = NULL, length= NULL)

Arguments

x

input character vector.

pos

atomic numeric. Indicates the start of the substring.

length

atomic numeric. Specifies the length of the substring.

Value

String. Returns an shortened string.

Author(s)

Bastian Wiessner

See Also

substr

Examples

1
xpssCompute(x=fromXPSS, variables="V1", fun="computeChar_substr", pos = 2, length=3)

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