as.data.frame: Convert a pim.environment to a data frame

Description Usage Arguments Details Value Examples

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

1
2
3
4
5
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 pim.environment object

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 make.names) is optional

...

additional arguments to be passed to or from methods, including stringsAsFactors. For more information, see the function as.data.frame from the base package.

Details

TO DO: Insert link to how to get pseudo observations out.

Value

a data frame.

Examples

1
2
3
4
# Create a pim environment
data("DysData")
Dys <- new.pim.env(DysData)
str(as.data.frame(Dys))

pim documentation built on May 2, 2019, 6:51 p.m.