Description Usage Arguments Value Author(s) Examples
Function to check if an object is an xpssFrame, or coerce it to one if possible.
1 2 3 4 | as.xpssFrame(x)
is.xpssFrame(x)
is.xpssFrame(x)
|
x |
any (non-empty) R object. |
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.
Bastian Wiessner
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.