mirror of
https://github.com/msberends/AMR.git
synced 2025-07-12 17:01:57 +02:00
expert rules 12.0
This commit is contained in:
@ -685,7 +685,7 @@ all.ab_selector_any_all <- function(..., na.rm = FALSE) {
|
||||
# e.g., example_isolates %>% filter(all(carbapenems() == "R"))
|
||||
# so just return the vector as is, only correcting for na.rm
|
||||
out <- unclass(c(...))
|
||||
if (na.rm == TRUE) {
|
||||
if (isTRUE(na.rm)) {
|
||||
out <- out[!is.na(out)]
|
||||
}
|
||||
out
|
||||
@ -699,7 +699,7 @@ any.ab_selector_any_all <- function(..., na.rm = FALSE) {
|
||||
# e.g., example_isolates %>% filter(any(carbapenems() == "R"))
|
||||
# so just return the vector as is, only correcting for na.rm
|
||||
out <- unclass(c(...))
|
||||
if (na.rm == TRUE) {
|
||||
if (isTRUE(na.rm)) {
|
||||
out <- out[!is.na(out)]
|
||||
}
|
||||
out
|
||||
|
Reference in New Issue
Block a user