mirror of
https://github.com/msberends/AMR.git
synced 2025-07-11 07:01:57 +02:00
(v1.1.0.9007) lose dependencies
This commit is contained in:
2
R/like.R
2
R/like.R
@ -57,10 +57,12 @@
|
||||
#' #> TRUE TRUE TRUE
|
||||
#'
|
||||
#' # get isolates whose name start with 'Ent' or 'ent'
|
||||
#' \dontrun{
|
||||
#' library(dplyr)
|
||||
#' example_isolates %>%
|
||||
#' filter(mo_name(mo) %like% "^ent") %>%
|
||||
#' freq(mo)
|
||||
#' }
|
||||
like <- function(x, pattern, ignore.case = TRUE) {
|
||||
# set to fixed if no regex found
|
||||
fixed <- all(!grepl("[$.^*?+}{|)(]", pattern))
|
||||
|
Reference in New Issue
Block a user