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:
@ -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) \%>\%
|
||||
|
Reference in New Issue
Block a user