matchFinder: Identifies symbols and sentences containing the symbols in a...

Description Usage Arguments Value Examples

Description

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.

Usage

1
matchFinder(sentence_matches, regex, sentences)

Arguments

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.

Value

The function matchFinder The function returns a nested list where the first list contains matched sentences and the second contains matched symbols.

Examples

1
2
## identifiying sentences contiaing specific keywords
matches <- matchFinder(sentence_matches, regex, sentences)

andreysoares/nlpUtilityBelt documentation built on May 6, 2019, 8:57 p.m.