1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 15:21:58 +02:00
This commit is contained in:
2019-05-23 17:35:58 +02:00
parent 60983a1640
commit bbf8b611e3
11 changed files with 26 additions and 20 deletions

View File

@ -23,6 +23,10 @@ globalVariables(c(".",
"..property",
"ab",
"abbreviations",
"mdr",
"mono_count",
"second",
"xdr",
"antibiotic",
"Antibiotic",
"antibiotics",

View File

@ -23,7 +23,7 @@
#'
#' These function can be used to determine first isolates (see \code{\link{first_isolate}}). Using key antibiotics to determine first isolates is more reliable than without key antibiotics. These selected isolates will then be called first \emph{weighted} isolates.
#' @param x table with antibiotics coloms, like \code{AMX} or \code{amox}
#' @param x,y characters to compare
#' @param y,z characters to compare
#' @inheritParams first_isolate
#' @param universal_1,universal_2,universal_3,universal_4,universal_5,universal_6 column names of \strong{broad-spectrum} antibiotics, case-insensitive. At default, the columns containing these antibiotics will be guessed with \code{\link{guess_ab_col}}.
#' @param GramPos_1,GramPos_2,GramPos_3,GramPos_4,GramPos_5,GramPos_6 column names of antibiotics for \strong{Gram positives}, case-insensitive. At default, the columns containing these antibiotics will be guessed with \code{\link{guess_ab_col}}.
@ -218,13 +218,15 @@ key_antibiotics <- function(x,
#' @importFrom dplyr progress_estimated %>%
#' @rdname key_antibiotics
#' @export
key_antibiotics_equal <- function(x,
y,
key_antibiotics_equal <- function(y,
z,
type = c("keyantibiotics", "points"),
ignore_I = TRUE,
points_threshold = 2,
info = FALSE) {
# x is active row, y is lag
# y is active row, z is lag
x <- y
y <- z
type <- type[1]