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