mirror of
https://github.com/msberends/AMR.git
synced 2025-07-12 09:01:52 +02:00
(v1.4.0.9012) reference_df fix
This commit is contained in:
6
R/like.R
6
R/like.R
@ -67,6 +67,11 @@
|
||||
#' if (require("dplyr")) {
|
||||
#' example_isolates %>%
|
||||
#' filter(mo_name(mo) %like% "^ent")
|
||||
#'
|
||||
#' example_isolates %>%
|
||||
#' mutate(group = case_when(hospital_id %like% "A|D" ~ "Group 1",
|
||||
#' mo_name(mo) %not_like% "^Staph" ~ "Group 2a",
|
||||
#' TRUE ~ "Group 2b"))
|
||||
#' }
|
||||
#' }
|
||||
like <- function(x, pattern, ignore.case = TRUE) {
|
||||
@ -168,7 +173,6 @@ like <- function(x, pattern, ignore.case = TRUE) {
|
||||
like(x, pattern, ignore.case = FALSE)
|
||||
}
|
||||
|
||||
|
||||
#' @rdname like
|
||||
#' @export
|
||||
"%not_like_case%" <- function(x, pattern) {
|
||||
|
Reference in New Issue
Block a user