Learn R Programming

SemNetCleaner (version 1.0.0)

converge: Converge Responses

Description

Merge a column of binarized response data with another

Usage

converge(rmat, word, replace)

Arguments

rmat

Binary matrix. A textcleaner filtered response matrix

word

Must be column name (characters). The column name (or number) that be merged into. This column will remain in the matrix

replace

Must be column name (characters). The column name (or number) that should be merged with the word column. This column will be removed from the matrix

Value

The response matrix with the word column merged and the replace column removed

Examples

Run this code
# NOT RUN {
#converge "kitten" into response of "cat"
rmat <- converge(rmat,"cat","kitten")

#"cat" remains will "kitten" responses are merged into
#"cat" and "kitten" is removed

# }

Run the code above in your browser using DataLab