1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-13 02:32:07 +02:00

fix for antibiogram(), transform WHONET data set to sir

This commit is contained in:
2023-02-22 15:40:05 +01:00
parent dad25302f2
commit c2cfc5ef84
10 changed files with 20 additions and 30 deletions

View File

@ -300,7 +300,7 @@ is_sir_eligible <- function(x, threshold = 0.05) {
#' @export
# extra param: warn (logical, to never throw a warning)
as.sir.default <- function(x, ...) {
if (is.sir(x)) {
if (inherits(x, "sir")) {
return(x)
}