View source: R/responses_to_binary.R
| resp2bin | R Documentation |
Converts a response matrix (verbal fluency or other linguistic data, one participant per row) into a binary (participant x vocabulary) response matrix
resp2bin(resp)
responses_to_binary(responses)
resp |
Legacy name for 'responses'. |
responses |
Matrix or data frame. A response matrix of verbal fluency or linguistic data |
A binary matrix with one row per participant and one column per unique response observed across the whole sample
Alexander Christensen <alexpaulchristensen@gmail.com>
# First 10 participants of the cleaned data
binary_matrix <- responses_to_binary(open.clean[1:10, ])
# Participants by responses (0 = not given, 1 = given)
binary_matrix[, 1:10]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.