mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 05:50:48 +01:00
use dplyr where available, new antibiogram() for WISCA, fixed Salmonella Typhi/Paratyphi
This commit is contained in:
1 parent
4b133d4c96
commit
9e99e66f01
69 files changed
+1670
-650
No files matched your search
+1
-1
@@ -252,7 +252,7 @@ av_url <- function(x, open = FALSE, ...) {
|
||||
av_property <- function(x, property = "name", language = get_AMR_locale(), ...) {
|
||||
meet_criteria(x, allow_NA = TRUE)
|
||||
meet_criteria(property, is_in = colnames(AMR::antivirals), has_length = 1)
|
||||
meet_criteria(language, is_in = c(LANGUAGES_SUPPORTED, ""), has_length = 1, allow_NULL = TRUE, allow_NA = TRUE)
|
||||
language <- validate_language(language)
|
||||
translate_into_language(av_validate(x = x, property = property, ...), language = language)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user