ecohealthalliance / ohcleandat

One Health Data Cleaning and Quality Checking Package
https://ecohealthalliance.github.io/ohcleandat/
MIT License
0 stars 0 forks source link

Make `othertext_lookup` extensible #15

Closed collinschwantes closed 5 months ago

collinschwantes commented 5 months ago

othertext_lookup currently is a hardcoded tibble, it might be better to be able to make othertext_lookup a function for creating the tibble in the appropriate form.

Maybe create_freetext_log then accepts objects of class othertext_lookup as a parameter.

ot_lookup_table <- othertext_lookup(field_names,free_text_field_names) 
create_freetext_log(..., othertext_lookup = ot_lookup_table)
deanmarchiori commented 5 months ago

Fixed, closing