mirror of
https://github.com/msberends/AMR.git
synced 2025-07-11 16:22:06 +02:00
(v2.1.1.9223) allow +
ab
This commit is contained in:
@ -954,9 +954,10 @@ any.amr_selector_any_all <- function(..., na.rm = FALSE) {
|
||||
#' @noRd
|
||||
`+.amr_selector` <- function(e1, e2) {
|
||||
# this is useful for `antibiogram()`: antibiogram(example_isolates, carbapenems() + c("", "GEN", "TOB"))
|
||||
structure(as.character(outer(e1, e2, paste, sep = " + ")),
|
||||
class = c("amr_selector", "character")
|
||||
)
|
||||
# this is also implemented for ab class, to allow direct console usage
|
||||
out <- as.character(outer(e1, e2, paste, sep = " + "))
|
||||
out <- gsub(" [+] $", "", out)
|
||||
structure(out, class = c("amr_selector", "character"))
|
||||
}
|
||||
|
||||
is_any <- function(el1) {
|
||||
|
Reference in New Issue
Block a user