binary_to_responses: Binary Responses to Character Responses

View source: R/binary_to_responses.R

binary_to_responsesR Documentation

Binary Responses to Character Responses

Description

Converts a binary response matrix into characters for each participant

Usage

binary_to_responses(binary_matrix, to_data_frame = FALSE)

bin2resp(rmat, to.data.frame = FALSE)

Arguments

binary_matrix

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 FALSE. Set to TRUE to convert output to data frame

rmat

Legacy name for 'binary_matrix'.

to.data.frame

Legacy name for 'to_data_frame'.

Value

A list containing objects for each participant and their responses

Author(s)

Alexander Christensen <alexpaulchristensen@gmail.com>

Examples

# Binary matrix of the first 10 participants of the cleaned data
binary_matrix <- responses_to_binary(open.clean[1:10, ])

# Each participant's responses, as a list
binary_to_responses(binary_matrix)

# As a participants by responses matrix
binary_to_responses(binary_matrix, to_data_frame = TRUE)


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