pepfar-datim/datapackr

Convert implicit warning in unpackSNUxIM to explicit error

Closed this issue · 0 comments

There is a data pack with text in value columns of the SNUxIM tab.

image

This results in a warning: Warning: NAs introduced by coercion

generated by this line of code:

dplyr::mutate(value = as.numeric(value)) %>%

I suggest we include the presence of text in a value column as an explicit error or warning.