# NOT RUN {
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"
## Perform a search
results <- getMatches(labbcat.url, list(segments="I"))
## Get centres of gravity for all matches
cog <- processWithPraat(
labbcat.url,
results$MatchId, results$Target.segments.start, results$Target.segments.end,
praatScriptCentreOfGravity(powers=c(1.0,2.0)),
no.progress=TRUE)
# }
Run the code above in your browser using DataLab