twoway (version 0.6.3)

as.data.frame.twoway: 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 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

Run this code
# NOT RUN {
data(sentRT)
sent.2way <- twoway(sentRT)
as.data.frame(sent.2way)

# }

Run the code above in your browser using DataCamp Workspace