responses_to_binary: Converts a Response Matrix to a Binary Response Matrix

View source: R/responses_to_binary.R

resp2binR Documentation

Converts a Response Matrix to a Binary Response Matrix

Description

Converts a response matrix (verbal fluency or other linguistic data, one participant per row) into a binary (participant x vocabulary) response matrix

Usage

resp2bin(resp)

responses_to_binary(responses)

Arguments

resp

Legacy name for 'responses'.

responses

Matrix or data frame. A response matrix of verbal fluency or linguistic data

Value

A binary matrix with one row per participant and one column per unique response observed across the whole sample

Author(s)

Alexander Christensen <alexpaulchristensen@gmail.com>

Examples

# 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]


SemNetCleaner documentation built on Oct. 16, 2026, 5:07 p.m.