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

fix for as.mo, added also_single_tested

This commit is contained in:
2018-10-19 13:53:31 +02:00
parent 032c0d51ef
commit 86b03577a7
14 changed files with 128 additions and 66 deletions

View File

@ -15,15 +15,15 @@
Wickham H. \strong{Tidy Data.} The Journal of Statistical Software, vol. 59, 2014. \url{http://vita.had.co.nz/papers/tidy-data.html}
}
\usage{
count_R(...)
count_R(..., also_single_tested = FALSE)
count_IR(...)
count_IR(..., also_single_tested = FALSE)
count_I(...)
count_I(..., also_single_tested = FALSE)
count_SI(...)
count_SI(..., also_single_tested = FALSE)
count_S(...)
count_S(..., also_single_tested = FALSE)
count_all(...)
@ -35,6 +35,8 @@ count_df(data, translate_ab = getOption("get_antibiotic_names",
\arguments{
\item{...}{one or more vectors (or columns) with antibiotic interpretations. They will be transformed internally with \code{\link{as.rsi}} if needed.}
\item{also_single_tested}{a logical to indicate whether (in combination therapies) also observations should be included where not all antibiotics were tested, but at least one of the tested antibiotics contains a target interpretation (e.g. S in case of \code{portion_S} and R in case of \code{portion_R}). \strong{This would lead to selection bias in almost all cases.}}
\item{data}{a \code{data.frame} containing columns with class \code{rsi} (see \code{\link{as.rsi}})}
\item{translate_ab}{a column name of the \code{\link{antibiotics}} data set to translate the antibiotic abbreviations to, using \code{\link{abname}}. This can be set with \code{\link{getOption}("get_antibiotic_names")}.}