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.
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 inreadMWRacc()
that converts'na'
values toNA
usingna_if()
will not work.