
Generates a query expression for matching a multi-value transcript/participant attribute, for use with getMatches
expressionFromAttributeValues.Rd
This function generates a query expression fragment which can be passed as the transcript.expression or participant.expression parameter of getMatches, (or the expression parameter of getMatchingTranscriptIds or getMatchingParticipantIds) using a list of possible values for a given transcript attribute.
Value
A transcript query expression which can be passed as the transcript.expression parameter of getMatches or the expression parameter of getMatchingTranscriptIds
Details
The attribute defined by transcript.attribute is expected to have possibly more than one value. If it can have only one value, use expressionFromAttributeValue instead.
Examples
if (FALSE) { # \dontrun{
## Perform a search
languages <- c("en","es")
results <- getMatches(labbcat.url, list(segment="I"),
participant.expression = expressionFromAttributeValues(
"participant_languagesSpoken", languages))
} # }