{dae}R Documentation

Coerces a pstructure.object to a data.frame.


Coerces a pstructure.object, which is of class pstructure, to a data.frame. One can choose whether or not to include the marginality matrix in the data.frame. The aliasing component is excluded.


## S3 method for class 'pstructure', row.names = NULL, optional = FALSE, ..., 
              omit.marginality = FALSE)



The pstructure.object, which is of class pstructure and is to be coerced.


NULL or a character vector giving the row names for the data frame. Missing values are not allowed.


A logical passed to If TRUE, setting row names and converting column names (to syntactic names: see make.names) is optional. Note that all of R's base package methods use optional only for column names treatment, basically with the meaning of

data.frame(*, check.names = !optional).


Further arguments passed to or from other methods.


A logical, which, if TRUE, results in the marginality matrix being omitted from the data.frame.


A data.frame with as many rows as there are non-aliased terms in the pstructure.object. The columns are df, terms, sources and, if omit.marginality is FALSE, the columns of the generated levels with columns of the marginality matrix that is stored in the marginality component of the object.


Chris Brien

See Also


## Generate a data.frame with 4 factors, each with three levels, in standard order
ABCD.lay <- fac.gen(list(A = 3, B = 3, C = 3, D = 3))

## create a pstructure object based on the formula ((A*B)/C)*D
ABCD.struct <- pstructure.formula(~ ((A*B)/C)*D, data =ABCD.lay)

## print the object either using the Method function or the generic function 
ABCS.dat <-

[Package dae version 3.2-13 Index]