mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 07:10:50 +01:00
(v1.4.0.9052) replaced all sapply's with type-safe vapply's
This commit is contained in:
1 parent
ccf13dd6c0
commit
526f8afb08
37 files changed
+155
-117
No files matched your search
@@ -192,7 +192,9 @@ resistance_predict <- function(x,
|
||||
rownames(df) <- NULL
|
||||
|
||||
df <- subset(df, sum(df$R + df$S, na.rm = TRUE) >= minimum)
|
||||
# nolint start
|
||||
df_matrix <- as.matrix(df[, c("R", "S"), drop = FALSE])
|
||||
# nolint end
|
||||
|
||||
stop_if(NROW(df) == 0, "there are no observations")
|
||||
|
||||
|
||||
Reference in new issue
Block a user