mirror of
https://github.com/msberends/AMR.git
synced 2025-12-13 23:50:20 +01:00
(v0.9.0.9023) EUCAST 2020 guidelines
This commit is contained in:
@@ -55,15 +55,15 @@ b \%like\% a
|
||||
|
||||
# also supports multiple patterns, length must be equal to x
|
||||
a <- c("Test case", "Something different", "Yet another thing")
|
||||
b <- c("case", "diff", "yet")
|
||||
b <- c( "case", "diff", "yet")
|
||||
a \%like\% b
|
||||
#> TRUE TRUE TRUE
|
||||
|
||||
# get frequencies of bacteria whose name start with 'Ent' or 'ent'
|
||||
library(dplyr)
|
||||
example_isolates \%>\%
|
||||
filter(mo_genus(mo) \%like\% '^ent') \%>\%
|
||||
freq(mo_fullname(mo))
|
||||
filter(mo_name(mo) \%like\% '^ent') \%>\%
|
||||
freq(mo_genus(mo))
|
||||
}
|
||||
\seealso{
|
||||
\code{\link[base:grep]{base::grep()}}
|
||||
|
||||
Reference in New Issue
Block a user