resp2bin: Responses to binary matrix

Description Usage Arguments Value Author(s) Examples

Description

Converts the response matrix to binary response matrix

Usage

1
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

Author(s)

Alexander Christensen <alexpaulchristensen@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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)
}

SemNetCleaner documentation built on Sept. 16, 2021, 5:12 p.m.