as.data.frame.twoway: Convert a twoway object to a data frame This function...

Description Usage Arguments Value Examples

Description

The rows and columns of the data table are strung out in standard R order in a vector, joined with row and column labels. Additional columns are added, representing the calculated values used in the two-way display.

Usage

1
2
## S3 method for class 'twoway'
as.data.frame(x, ...)

Arguments

x

a "twoway" object

...

other arguments, presently ignored

Value

a data.frame with r \times c rows corresponding to the input data table, and the following columns

row

row labels

col

column labels

data

the data value in the cell

fit

the fitted value,

roweff

the row effect

coleff

the column effect

nonadd

the 1 df for non-additivity value

Examples

1
2
3
data(sentRT)
sent.2way <- twoway(sentRT)
as.data.frame(sent.2way)

friendly/twoway documentation built on May 29, 2019, 3:04 p.m.