1
0
mirror of https://github.com/msberends/AMR.git synced 2026-02-09 13:52:54 +01:00

Built site for AMR@3.0.1.9019: ba4c159

This commit is contained in:
github-actions
2026-02-08 22:40:23 +00:00
parent 0551ea51cb
commit 8b71d0eb99
255 changed files with 23625 additions and 810 deletions

View File

@@ -195,10 +195,14 @@ strainB <- "SSSIRSSSRSSS"
# those strings can be compared with:
antimicrobials_equal(strainA, strainB, type = "keyantimicrobials")
#> Warning: in `as.sir()`: 4 results truncated (33%) that were invalid antimicrobial
#> interpretations: "."
#> [1] TRUE
# TRUE, because I is ignored (as well as missing values)
antimicrobials_equal(strainA, strainB, type = "keyantimicrobials", ignore_I = FALSE)
#> Warning: in `as.sir()`: 4 results truncated (33%) that were invalid antimicrobial
#> interpretations: "."
#> [1] FALSE
# FALSE, because I is not ignored and so the 4th [character] differs
@@ -218,6 +222,14 @@ if (require("dplyr")) {
sum(my_patients$first_regular, na.rm = TRUE)
sum(my_patients$first_weighted, na.rm = TRUE)
}
#> Warning: There were 823 warnings in `mutate()`.
#> The first warning was:
#> In argument: `first_weighted = first_isolate(col_keyantimicrobials =
#> "keyab")`.
#> Caused by warning:
#> ! in `as.sir()`: 1 result in column 'first_weighted' truncated (8%) that were
#> invalid antimicrobial interpretations: "."
#> Run `dplyr::last_dplyr_warnings()` to see the 822 remaining warnings.
#> [1] 1383
# }
```