mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 00:43:00 +02:00
(v1.4.0.9056) subsetting ab class selectors for base R
This commit is contained in:
11
index.md
11
index.md
@ -35,6 +35,8 @@ example_isolates %>%
|
||||
select(mo, aminoglycosides(), carbapenems())
|
||||
#> NOTE: Using column 'mo' as input for mo_is_gram_negative()
|
||||
#> NOTE: Using column 'mo' as input for mo_is_intrinsic_resistant()
|
||||
#> NOTE: Determining intrinsic resistance based on 'EUCAST Expert Rules' and
|
||||
#> 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.2 from 2020.
|
||||
#> Selecting aminoglycosides: 'AMK' (amikacin), 'GEN' (gentamicin),
|
||||
#> 'KAN' (kanamycin), 'TOB' (tobramycin)
|
||||
#> Selecting carbapenems: 'IPM' (imipenem), 'MEM' (meropenem)
|
||||
@ -52,6 +54,15 @@ With only having defined a row filter on Gram-negative bacteria with intrinsic r
|
||||
|*Stenotrophomonas maltophilia* | R | R | R | R | R | R |
|
||||
|*Pseudomonas aeruginosa* | S | S | R | S | | S |
|
||||
|
||||
A base R equivalent would be:
|
||||
|
||||
```r
|
||||
example_isolates$mo <- mo_fullname(example_isolates$mo)
|
||||
example_isolates[which(mo_is_gram_negative() &
|
||||
mo_is_intrinsic_resistant(ab = "cefotax")),
|
||||
c("mo", aminoglycosides(), carbapenems())]
|
||||
```
|
||||
|
||||
#### Partners
|
||||
|
||||
The development of this package is part of, related to, or made possible by:
|
||||
|
Reference in New Issue
Block a user