50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


nzilbb.labbcat (version 0.6-3)

getParticipantAttributes: Gets participant attribute values for given participant IDs.

Description

Gets participant attribute values for given participant IDs.

Usage

getParticipantAttributes(labbcat.url, participantIds, layerIds)

Arguments

labbcat.url

URL to the LaBB-CAT instance

participantIds

A vector of participant IDs

layerIds

A vector of layer IDs corresponding to participant attributes. In general, these are layers whose ID is prefixed 'participant_', however formally it's any layer where layer$parentId == 'participant' && layer$alignment == 0.

Value

A data frame of attribute value labels.

Examples

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

## Get gender and age for all participants
attributes <- getParticipantAttributes(labbcat.url,
            getParticipantIds(labbcat.url),
            c('participant_gender', 'participant_age'))

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab