mirror of
https://github.com/msberends/AMR.git
synced 2024-12-25 19:26:13 +01:00
44 lines
2.2 KiB
R
44 lines
2.2 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/custom_eucast_rules.R
|
|
\name{custom_eucast_rules}
|
|
\alias{custom_eucast_rules}
|
|
\title{Create Custom EUCAST Rules}
|
|
\usage{
|
|
custom_eucast_rules(...)
|
|
}
|
|
\arguments{
|
|
\item{...}{rules in formula notation, see \emph{Examples}}
|
|
}
|
|
\description{
|
|
Create Custom EUCAST Rules
|
|
}
|
|
\details{
|
|
This documentation page will be updated shortly. \strong{This function is experimental.}
|
|
}
|
|
\section{How it works}{
|
|
|
|
..
|
|
|
|
It is also possible to define antibiotic groups instead of single antibiotics. The following groups are allowed (case-insensitive): \code{aminoglycosides}, \code{aminopenicillins}, \code{betalactams}, \code{carbapenems}, \code{cephalosporins}, \code{cephalosporins_1st}, \code{cephalosporins_2nd}, \code{cephalosporins_3rd}, \code{cephalosporins_except_caz}, \code{fluoroquinolones}, \code{glycopeptides}, \code{glycopeptides_except_lipo}, \code{lincosamides}, \code{lipoglycopeptides}, \code{macrolides}, \code{oxazolidinones}, \code{penicillins}, \code{polymyxins}, \code{streptogramins}, \code{tetracyclines}, \code{tetracyclines_except_tgc} and \code{ureidopenicillins}.
|
|
}
|
|
|
|
\section{Experimental Lifecycle}{
|
|
|
|
\if{html}{\figure{lifecycle_experimental.svg}{options: style=margin-bottom:5px} \cr}
|
|
The \link[=lifecycle]{lifecycle} of this function is \strong{experimental}. An experimental function is in early stages of development. The unlying code might be changing frequently. Experimental functions might be removed without deprecation, so you are generally best off waiting until a function is more mature before you use it in production code. Experimental functions are only available in development versions of this \code{AMR} package and will thus not be included in releases that are submitted to CRAN, since such functions have not yet matured enough.
|
|
}
|
|
|
|
\examples{
|
|
x <- custom_eucast_rules(AMC == "R" & genus == "Klebsiella" ~ aminopenicillins == "R",
|
|
AMC == "I" & genus == "Klebsiella" ~ aminopenicillins == "I")
|
|
eucast_rules(example_isolates,
|
|
rules = "custom",
|
|
custom_rules = x,
|
|
info = FALSE)
|
|
|
|
# combine rule sets
|
|
x2 <- c(x,
|
|
custom_eucast_rules(TZP == "R" ~ carbapenems == "R"))
|
|
x2
|
|
}
|