span: Indicates range of varlist

Description Usage Arguments Value Author(s) Examples

View source: R/span.R

Description

Creates a list of variables within a specific range.

Usage

1
span(x, from = NULL, to = NULL, addDF = FALSE)

Arguments

x

a (non-empty) data.frame or input data of class "xpssFrame".

from

the variable that opens the span.

to

the variable that closes the span.

addDF

if the name of the input data should be used?

Value

Returns a varlist with the name of the variables which are within the range of the span indicator.

Author(s)

Andreas Wygrabek

Examples

1
2
3
data(fromXPSS)
span(x=fromXPSS,from="V1",to="V5",addDF=FALSE)
span(x=fromXPSS,from="V3",to="V1",addDF=TRUE)

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