remove_redundancies: Remove redundant terms

Description Usage Arguments Value

View source: R/write_scrape_test_searches.R

Description

Given a list of terms, removes redundant terms based on plurals, stemming, or partial matches

Usage

1
remove_redundancies(terms, closure = c("left", "right", "full", "none"))

Arguments

terms

a character vector of terms

closure

restrictions on how matches are detected; left requires matches to start with a term (e.g "burn" matches "burning"), right requires matches to end with a term (e.g. "burn" matches "postburn" but not "postburning"), full requires exact matches (e.g. "burn" only matches "burn"), and none allows terms to be embedded within matches.

Value

a character vector with redundant terms removed


elizagrames/litsearchr documentation built on April 14, 2021, 3:42 p.m.