| meow_long | R Documentation |
meow() represents responses as a respondent-by-item matrix (R) together
with an administration matrix (admin). This helper returns the administered
responses as a long data frame with columns id, item, and resp, ordered
by respondent and then by the order in which items were administered. It is
the recommended bridge for module authors who prefer to work with
tidyverse-style long data inside their own item selection or parameter update
functions.
meow_long(R, admin)
R |
A respondent-by-item matrix of (potential) responses. |
admin |
An administration matrix the same shape as |
A long-form data frame with columns id, item, and resp
containing only the administered responses.
R <- matrix(c(1, 0, 1, 1), nrow = 2)
admin <- matrix(c(1L, 0L, 2L, 1L), nrow = 2)
meow_long(R, admin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.