as.data.frame.twoway {twoway} | R Documentation |
Convert a twoway object to a data frame
This function converts a "twoway"
object to a data.frame
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
## S3 method for class 'twoway'
as.data.frame(x, ...)
Arguments
x |
a |
... |
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
data(sentRT)
sent.2way <- twoway(sentRT)
as.data.frame(sent.2way)
[Package twoway version 0.6.3 Index]