CharlesJB / ENCODExplorer

5 stars 4 forks source link

Add regex support to queryEncode #32

Closed ericfournier2 closed 7 years ago

ericfournier2 commented 7 years ago

These changes implement a new function, queryEncodeGeneric, which can use regular expressions, multiple search terms per search field and can query any attribute which is part of encode_df.

The queryEncode function's interface is slightly modified here. A new parameter, fuzzy, replaces what was the function of the fixed parameter. The fixed parameter becomes similar to its homolog in functions such as grepl, and toggles between exact string matching and regular expression matching.

As an aside, this also fixes the bug where the apssed-in df object was ignored in queryEncode.