Description Usage Arguments Value Examples
matchFinder
searches through each row (sentence) and column (symbol) of a matrix of matches. Values in the matrix are generated by the results of running grepl against all potential symbol matches and the title and abstract of a journal article. Additional filtering is performed to remove columns where the symbol is not in a master symbol list. The function returns a nested list where the first list contains matched sentences and the second contains matched symbols.
1 | matchFinder(sentence_matches, regex, sentences)
|
sentence_matches |
A matrix of matches, where values in the matrix are generated by the results of running grepl against all potential symbol matches and the title and abstract of a journal article. |
regex |
a large data frame of symbols and regular expression patterns. |
sentences |
a character vetor of sentences, the title and abstract. |
The function matchFinder
The function returns a nested list where the first list contains matched sentences and the second contains matched symbols.
1 2 | ## identifiying sentences contiaing specific keywords
matches <- matchFinder(sentence_matches, regex, sentences)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.