expressionFromIds: Generates a query expression for matching transcripts or...

View source: R/expressionFromIds.R

expressionFromIdsR 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

expressionFromAttributeValue

expressionFromAttributeValues

expressionFromTranscriptTypes

getMatches

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)

nzilbb.labbcat documentation built on July 26, 2023, 6:08 p.m.