Learn R Programming

SemNetCleaner (version 1.3.4)

resp2bin: Responses to binary matrix

Description

Converts the response matrix to binary response matrix

Usage

resp2bin(resp)

Arguments

resp

Response matrix. A response matrix of verbal fluency or linguistic data

Value

A list containing objects for each participant and their responses

Examples

Run this code
# NOT RUN {
# 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 response matrix to binary response matrix
  binmat <- resp2bin(clean$responses$corrected)
}

# }

Run the code above in your browser using DataLab