scoreMatch: Score match responses

Description Usage Arguments Value Examples

View source: R/match.R

Description

Score match responses

Usage

1
scoreMatch(resp, identifier, correct = c(), variables.in.columns = F)

Arguments

identifier

The variable that has been given (a) corresponding value(s)

correct

The correct values

matchObject

A matchObject

Value

A vector of scores

Examples

1
2
3
matchresponse<-c("[mail1 annoyed; mail4 annoyed; mail2 angry]","[mail1 confused]")
matchObject<-makeMatch(matchresponse)
scoreMatch(matchObject,"mail1",c("happy","annoyed"))

openPCI/OpenPCIScoring documentation built on June 10, 2021, 1:18 p.m.