Learn R Programming

SemNetCleaner (version 1.1.0)

autoConverge: Automated Converge Responses

Description

Automated converge function which merges of columns of binarized response data with another. This function streamlines the merging of like responses with other like responses (e.g., "roaches" with "cockroaches") into one singular function.

Usage

autoConverge(rmat)

Arguments

rmat

Binary response matrix. A textcleaner filtered response matrix

Value

A list containing four objects:

rmat

A response matrix that has had responses converged

converged

A matrix of responses showing the original response (from) and the response that replaced it (to). If response was not converged, then it stays the same

changed

A matrix of responses that were changed. The original response (from) and the response that replaced it (to). If responses were removed, then <NA> is displayed

participant

A list of each response with each participant affected

Examples

Run this code
# NOT RUN {
# Toy example
raw <- open.animals[c(1:10),-c(1,2)]

# Clean and prepocess data
clean <- textcleaner(raw, partBY = "row", dictionary = "animals")

# Obtain binary data
bin <- clean$binary

# Automated converge
if(interactive())
{convmat <- autoConverge(bin)}

# }

Run the code above in your browser using DataLab