fuzzy_needle {librarian} | R Documentation |
Turn a list of words into a fuzzy regex
Description
A fuzzy regex is one that will match search terms in any order by using PERL lookaround. This is very slow, but often worth the cost to get more complete results.
Usage
fuzzy_needle(vec)
Arguments
vec |
(Character) A string containing space-separated keywords to search for. |
Value
A string where each word has been wrapped as a lookaround term.
Examples
## Not run:
fuzzy_needle("network centrality")
#> [1] "(?=.*network)(?=.*centrality)"
## End(Not run)
[Package librarian version 1.8.1 Index]