View source: R/likertWeighted.R
toCQxR | R Documentation |
Reshape a 3-way array to a 2-way data.frame that can can be used with a
trellis conditioning formula to get the three-way behavior.
Used with likertWeighted()
.
toCQxR(x, C = 1, R = 2, Q = 3)
x |
Three-way array, with dimensions "Classification", "Responses", "Questions" in some order. |
C , R , Q |
Integers, one each of 1,2,3; positions of the three dimensions. |
Data.frame with CQ rows and Q + N columns, where N is either 1 or 2 for
the number of condition variables in the formula for likertWeighted
.
Richard M. Heiberger <rmh@temple.edu>
likertWeighted
tmp3 <- array(1:40, c(4,5,2), list(LETTERS[1:4], LETTERS[5:9], LETTERS[10:11]))
tmp3
toCQxR(tmp3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.