Learn R Programming

nzilbb.labbcat (version 1.0-1)

countAnnotations: Gets the number of annotations on the given layer of the given transcript.

Description

Returns the number of annotations on the given layer of the given transcript.

Usage

countAnnotations(labbcat.url, id, layer.id)

Arguments

labbcat.url

URL to the LaBB-CAT instance

id

A transcript ID (i.e. transcript name)

layer.id

A layer ID

Value

The number of annotations on that layer

See Also

getTranscriptIds getTranscriptIdsInCorpus getTranscriptIdsWithParticipant

Examples

Run this code
# NOT RUN {
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"

## Count the number of words in UC427_ViktoriaPapp_A_ENG.eaf
token.count <- countAnnotations(labbcat.url, "UC427_ViktoriaPapp_A_ENG.eaf", "orthography")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab