Coerces data.frames to xpssFrame objects

Share:

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.