Learn R Programming

translateSPSS2R (version 1.0.0)

span: Indicates range of varlist

Description

Creates a list of variables within a specific range.

Usage

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.

Examples

Run this code
data(fromXPSS)
span(x=fromXPSS,from="V1",to="V5",addDF=FALSE)
span(x=fromXPSS,from="V3",to="V1",addDF=TRUE)

Run the code above in your browser using DataLab