thomas-rasmussen / sas_macros

SAS macros
Creative Commons Zero v1.0 Universal
5 stars 4 forks source link

hash_match: match_inexact algorithm of identifying variables #13

Closed thomas-rasmussen closed 4 years ago

thomas-rasmussen commented 4 years ago

The algorithm match_inexact uses to identify variables is conservative and works, but is far from perfect, eg if we are using variable name "variable" in match_inexact, but the input datast also has a variables called "var", "var" will also be added to the output. Is there any way the algorithm can be fine-tuned to avoid cases such as this? One could add a macro parameter called match_inexact_vars that could be used to specify the variables, and if not specified, it would then employ the algorithm?