Description Usage Arguments Value
Annotate a data frame of tokens with codes using Lucene-like search queries
1 2 3 4 5 |
tokens |
a data frame of tokens containing columns for document id (), text position (position) and text string (column name can be specified in word.col, defaults to 'word'). |
queries |
a data frame containing the queries. |
word.col |
a character string giving the name of the term string column |
batchsize |
This function is faster if multiple queries are searched together, but too many queries (with too many tokens) at once can eat up memory or crash R. Try lowering batchsize in case of issues. |
condition_once |
logical. If TRUE, then if an indicator satisfies its conditions once in an article, all indicators within that article are coded. |
presorted |
The data has to be sorted on order(, position). If this is already the case, presorted can be set to TRUE to save time (which is usefull when testing many individual queries for large tokenlists) |
the annotated tokens data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.