as.xpssFrame: Coerces data.frames to xpssFrame objects

Description Usage Arguments Value Author(s) Examples

View source: R/as.xpssFrame.R

Description

Function to check if an object is an xpssFrame, or coerce it to one if possible.

Usage

1
2
3
4

Arguments

x

any (non-empty) R object.

Value

as.xpssFrame returns an xpssFrame, with the essential attributes DO_IF, FILTER, SPLIT_FILE, TEMPORORY and WEIGHTS for the actual dataset and additional variable.label and varname attributes for every variable in the dataset.

is.xpssFrame returns TRUE if its argument is a xpssFrame (that is, has "xpssFrame" amongst its classes) and FALSE otherwise.

Author(s)

Bastian Wiessner

Examples

1
2
3
4
5
6
data(fromXPSS)
is.xpssFrame(fromXPSS)
temp <- data.frame(x=1:5, y = 2:6, z=c("a","b","c","d","e"))
is.xpssFrame(temp)
temp <- as.xpssFrame(temp)
is.xpssFrame(temp)

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

Search within the translateSPSS2R package
Search all R packages, documentation and source code