Learn R Programming

rpact (version 3.4.0)

as.data.frame.TrialDesign: Coerce TrialDesign to a Data Frame

Description

Returns the TrialDesign as data frame.

Usage

# S3 method for TrialDesign
as.data.frame(
  x,
  row.names = NULL,
  optional = FALSE,
  niceColumnNamesEnabled = FALSE,
  includeAllParameters = FALSE,
  ...
)

Value

Returns a data.frame.

Arguments

x

A TrialDesign object.

niceColumnNamesEnabled

Logical. If TRUE, nice looking column names will be used; syntactic names (variable names) otherwise (see make.names).

includeAllParameters

Logical. If TRUE, all available parameters will be included in the data frame; a meaningful parameter selection otherwise, default is FALSE.

...

Ensures that all arguments (starting from the "...") are to be named and that a warning will be displayed if unknown arguments are passed.

Details

Each element of the TrialDesign is converted to a column in the data frame.

Examples

Run this code
as.data.frame(getDesignGroupSequential())

Run the code above in your browser using DataLab