mirror of
https://github.com/msberends/AMR.git
synced 2026-06-29 18:56:19 +02:00
Built site for AMR@3.0.1.9079: 03be4b8
This commit is contained in:
@@ -1097,7 +1097,7 @@ example_isolates[, amr_selector(oral_ddd > 1 & oral_units == "g")]
|
||||
# data.table --------------------------------------------------------------
|
||||
|
||||
# data.table is supported as well, just use it in the same way as with
|
||||
# base R, but add `with = FALSE` if using a single AB selector.
|
||||
# base R, but add `with = FALSE` if using a single AMR selector.
|
||||
|
||||
if (require("data.table")) {
|
||||
dt <- as.data.table(example_isolates)
|
||||
@@ -1145,7 +1145,7 @@ if (require("data.table")) {
|
||||
#> 1999: S S
|
||||
#> 2000: S S
|
||||
|
||||
# for multiple selections or AB selectors, `with = FALSE` is not needed:
|
||||
# for multiple selections or AMR selectors, `with = FALSE` is not needed:
|
||||
if (require("data.table")) {
|
||||
dt[, c("mo", aminoglycosides())]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user