mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 00:02:38 +02:00
(v0.7.1.9060) globals
This commit is contained in:
@ -78,9 +78,9 @@ format.bugdrug <- function(x, combine_SI = TRUE, add_ab_group = TRUE, ...) {
|
||||
}
|
||||
y <- x %>%
|
||||
mutate(mo = mo_name(mo),
|
||||
txt = paste0(AMR:::percent(isolates / total, force_zero = TRUE),
|
||||
" (", trimws(format(isolates, big.mark = ",")), "/",
|
||||
trimws(format(total, big.mark = ",")), ")")) %>%
|
||||
txt = paste0(percent(isolates / total, force_zero = TRUE),
|
||||
" (", trimws(format(isolates, big.mark = ",")), "/",
|
||||
trimws(format(total, big.mark = ",")), ")")) %>%
|
||||
select(ab, mo, txt) %>%
|
||||
spread(mo, txt) %>%
|
||||
mutate_all(~ifelse(is.na(.), "", .)) %>%
|
||||
|
@ -86,6 +86,7 @@ globalVariables(c(".",
|
||||
"species_id",
|
||||
"subspecies",
|
||||
"synonyms",
|
||||
"total",
|
||||
"txt",
|
||||
"value",
|
||||
"xdr",
|
||||
|
Reference in New Issue
Block a user