massbays-tech / MassWateR

R package for working with Massachusetts surface water quality data
https://massbays-tech.github.io/MassWateR
Creative Commons Zero v1.0 Universal
11 stars 3 forks source link

`readMWRacc` will not use `na_if` if some columns are numeric #56

Closed fawda123 closed 1 year ago

fawda123 commented 1 year ago

readxl::read_excel() will import columns as a particular class based on the best guess on import, unless specified explicitly. If any columns, e.g., UQL, are all numeric and the rest are character, the next step in readMWRacc() that converts 'na' values to NA using na_if() will not work.