as.data.frame.planordesign: Data Frame Coercion

Description Usage Arguments Value Examples

View source: R/planordesign.R

Description

Method to extract the dataframe containing the final design from a planordesign object, i.e the slot design. The other slots are stored in attributes.

Usage

1
2
## S4 method for signature 'planordesign'
as.data.frame(x, ...)

Arguments

x

an object of class planordesign.

...

ignored.

Value

A data frame with attributes factors, model, designkey, nunits, recursive.

Examples

1
2
3
4
5
6
7
### Creation of a planordesign object
K0 <- planor.designkey(factors=c("R","C","U","A","B1","B2"),
 nlevels=c(3,2,2,3,2,2), model=~R*C + (A+B1+B2)^2, estimate=~A:B1+A:B2,
 nunits=12, base=~R+C+U, max.sol=2)
P0 <- planor.design(key=K0, select=1)
### Convert into a data frame
D0 <- as.data.frame(P0)

planor documentation built on March 19, 2020, 1:06 a.m.