bin2resp | R Documentation |
Converts the binary response matrix into characters for each participant
bin2resp(rmat, to.data.frame = FALSE)
rmat |
Binary 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 |
A list containing objects for each participant and their responses
Alexander Christensen <alexpaulchristensen@gmail.com>
# Toy example
raw <- open.animals[c(1:10),-c(1:3)]
if(interactive())
{
# Clean and prepocess data
clean <- textcleaner(open.animals[,-c(1:2)], partBY = "row", dictionary = "animals")
# Change binary response matrix to word response matrix
charmat <- bin2resp(clean$responses$binary)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.