as.data.frame {pim} | R Documentation |
Convert a pim.environment to a data frame
Description
This function extracts all data from a pim.environment
and returns it as a data frame. Note that this is the original data
frame, not the one with pseudo observations.
Usage
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
## S4 method for signature 'pim.environment'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
Arguments
x |
a |
row.names |
NULL or a character vector giving the row names for the data frame. Missing values are not allowed. |
optional |
logical. if TRUE, setting row names and converting
column names (to syntactic names: see |
... |
additional arguments to be passed to or from methods,
including |
Details
TO DO: Insert link to how to get pseudo observations out.
Value
a data frame.
Examples
# Create a pim environment
data("DysData")
Dys <- new.pim.env(DysData)
str(as.data.frame(Dys))
[Package pim version 2.0.2 Index]