View source: R/binary_to_responses.R
| binary_to_responses | R Documentation |
Converts a binary response matrix into characters for each participant
binary_to_responses(binary_matrix, to_data_frame = FALSE)
bin2resp(rmat, to.data.frame = FALSE)
binary_matrix |
Matrix. A binarized response matrix of verbal fluency or linguistic data |
to_data_frame |
Boolean.
Should output be a data frame where participants are columns?
Defaults to |
rmat |
Legacy name for 'binary_matrix'. |
to.data.frame |
Legacy name for 'to_data_frame'. |
A list containing objects for each participant and their responses
Alexander Christensen <alexpaulchristensen@gmail.com>
# Binary matrix of the first 10 participants of the cleaned data
binary_matrix <- responses_to_binary(open.clean[1:10, ])
# Each participant's responses, as a list
binary_to_responses(binary_matrix)
# As a participants by responses matrix
binary_to_responses(binary_matrix, to_data_frame = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.