| appendLabels | R Documentation |
This is a version of getMatchLabels that can have a dataframe of matches piped into it, and returns the dataframe with columns appended.
appendLabels(
matches,
layer.ids,
target.offset = 0,
annotations.per.layer = 1,
page.length = 1000,
no.progress = FALSE,
labbcat.url = NULL,
column.prefix = NULL
)
matches |
A dataframe returned by getMatches or getAllUtterances, identifying the results to which annotation labels should be appended. |
layer.ids |
A vector of layer IDs. |
target.offset |
The distance from the original target of the match, e.g.
|
annotations.per.layer |
The number of annotations on the given layer to retrieve. In most cases, there's only one annotation available. However, tokens may, for example, be annotated with ‘all possible phonemic transcriptions’, in which case using a value of greater than 1 for this parameter provides other phonemic transcriptions, for tokens that have more than one. |
page.length |
In order to prevent timeouts when there are a large number of matches or the network connection is slow, rather than retrieving matches in one big request, they are retrieved using many smaller requests. This parameter controls the number of results retrieved per request. |
no.progress |
TRUE to suppress visual progress bar. Otherwise, progress bar will be shown when interactive(). |
labbcat.url |
URL to the LaBB-CAT instance (instead of inferring it from |
column.prefix |
A string to prefix each new column name with. |
matches with the labels appended as new columns.
getMatchLabels
getMatches
## Not run:
## Perform a search
results <- getMatches(labbcat.url, list(orthography="quake")) |>
appendLabels("topic") ## Get the topic annotations for the matches
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.