Learn R Programming

SemNetCleaner (version 1.1.5)

finalize: Finalize Response Matrix

Description

Finalizes the response matrix by keeping responses that are given by a certain number of people

Usage

finalize(rmat, minCase = 2)

Arguments

rmat

Binary matrix. A textcleaner filtered response matrix

minCase

Numeric. Minimum number of cases to produce a response

Value

A binary response matrix with responses given by at least minCase people

Examples

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

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

# Obtain binary data
bin <- clean$binary

# Finalize mat1
mat1 <- finalize(bin)

# }

Run the code above in your browser using DataLab