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

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-02-22 15:40:05 +01:00
1 parent dad25302f2
commit c2cfc5ef84
10 files changed
+20 -30

No files matched your search

+1 -1
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)
}