1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-13 06:42:04 +02:00

(v1.6.0.9001) support Inf for episodes

This commit is contained in:
2021-04-12 12:35:13 +02:00
parent 7a3139f7cc
commit 6ff5448192
29 changed files with 144 additions and 104 deletions

View File

@ -12,7 +12,7 @@ is_new_episode(x, episode_days, ...)
\arguments{
\item{x}{vector of dates (class \code{Date} or \code{POSIXt})}
\item{episode_days}{required episode length in days, can also be less than a day, see \emph{Details}}
\item{episode_days}{required episode length in days, can also be less than a day or \code{Inf}, see \emph{Details}}
\item{...}{currently not used}
}
@ -90,7 +90,7 @@ if (require("dplyr")) {
# grouping on patients and microorganisms leads to the same results
# as first_isolate():
x <- example_isolates \%>\%
filter(first_isolate(., include_unknown = TRUE))
filter_first_isolate(include_unknown = TRUE)
y <- example_isolates \%>\%
group_by(patient_id, mo) \%>\%