View source: R/pstructure.v4.r
print.pstructure | R Documentation |
Prints a pstructure.object
, which is of class pstructure
.
The df, terms and sources are coerced into a data.frame
and printed;
the marginality matrix is printed separately.
## S3 method for class 'pstructure'
print(x, which = "all", ...)
x |
The |
which |
A character |
... |
Further arguments passed to |
Chris Brien
print
, print.default
, show
.
## 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, the generic function or show
print.pstructure(ABCD.struct)
print(ABCD.struct)
ABCD.struct
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.