expressionFromIds {nzilbb.labbcat} | R Documentation |
Generates a query expression for matching transcripts or participants by ID, for use with getMatches.
Description
This function generates a query expression fragment which can be passed as the transcript.expression or participant.expression parameter of getMatches, using a list of corresponding IDs.
Usage
expressionFromIds(ids, not = FALSE)
Arguments
ids |
A list of IDs. |
not |
Whether to match the given IDs (FALSE), or everything *except* the given IDs. |
Value
A query expression which can be passed as the transcript.expression or participant.expression parameter of getMatches or the expression parameter of getMatchingTranscriptIds or getMatchingParticipantIds
See Also
Examples
## Not run:
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"
## Perform a search
transcript.ids <- c("AP511_MikeThorpe.eaf", "BR2044_OllyOhlson.eaf")
results <- getMatches(labbcat.url, list(segment="I"),
transcript.expression = expressionFromIds(transcript.ids))
## End(Not run)
[Package nzilbb.labbcat version 1.3-0 Index]