Learn R Programming

SemNetCleaner (version 1.1.5)

dup.match: Detect Duplicate Matches

Description

A wrapper function for correct.changes. It returns the opposite values of what the name of the function suggests -- that is, FALSE for duplicates and TRUE for non-duplicates

Usage

dup.match(tc.obj, part, target)

Arguments

tc.obj

A textcleaner object

part

Participant ID

target

Target response for correcting the change (see old argument in correct.changes)

Value

Returns FALSE for responses that have been identified twice in either the participant's original responses (i.e., tc.obj$responses$orig) or in their changed responses (i.e., tc.obj$partChanges). Returns TRUE if response is not given

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")

# Check for duplicate match
dup.match(clean, 1, 1)

# }

Run the code above in your browser using DataLab