bin2resp {SemNetCleaner} | R Documentation |
Binary Responses to Character Responses
Description
Converts the binary response matrix into characters for each participant
Usage
bin2resp(rmat, to.data.frame = FALSE)
Arguments
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 |
Value
A list containing objects for each participant and their responses
Author(s)
Alexander Christensen <alexpaulchristensen@gmail.com>
Examples
# 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)
}
[Package SemNetCleaner version 1.3.4 Index]