View source: R/expressionFromAttributeValues.R
expressionFromAttributeValues | R Documentation |
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.
expressionFromAttributeValues(transcript.attribute, values, not = FALSE)
transcript.attribute |
The transcript attribute to filter by. |
values |
A list of possible values for transcript.attribute. |
not |
Whether to match the given IDs (FALSE), or everything *except* the given IDs. |
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.
A transcript query expression which can be passed as the transcript.expression parameter of getMatches or the expression parameter of getMatchingTranscriptIds
expressionFromAttributeValue
expressionFromTranscriptTypes
expressionFromIds
getMatches
## Not run:
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"
## Perform a search
languages <- c("en","es")
results <- getMatches(labbcat.url, list(segment="I"),
participant.expression = expressionFromAttributeValues(
"participant_languagesSpoken", languages))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.