msberends / AMR

Functions to simplify and standardise antimicrobial resistance (AMR) data analysis and to work with microbial and antimicrobial properties by using evidence-based methods, as described in https://doi.org/10.18637/jss.v104.i03.
https://msberends.github.io/AMR/
Other
83 stars 12 forks source link

Regard `""` as `NA` in `as.disk()` #59

Closed msberends closed 2 years ago

msberends commented 2 years ago

This is inconsistent:

# first MIC and RSI
AMR::as.mic("")
#> Class <mic>
#> [1] <NA>
AMR::as.rsi("")
#> Class <rsi>
#> [1] <NA>

# now disk
AMR::as.disk("")
#> Warning: in `as.disk()`: 1 results truncated (100%) that were invalid disk
#> zones: ""
#> Class <disk>
#> [1] NA
msberends commented 2 years ago

fixed in main