Skip to content

Commit 501b0dc

Browse files
committed
chore(docs/lints): ran devtools::document() and some linting
1 parent 9d18b98 commit 501b0dc

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export(ReplicationTabuliser)
44
export(ReplicationsAlgorithm)
55
export(WelfordStats)
66
export(calc_arrivals)
7+
export(calc_mean_patients_in_service)
78
export(calc_mean_queue)
89
export(calc_mean_serve_length)
910
export(calc_mean_wait)

R/get_run_results.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ calc_mean_patients_in_service <- function(patient_count, groups = NULL) {
8181
# Calculate the time-weighted number of patients in the service
8282
patient_count %>%
8383
# Sort by time
84-
arrange(time) %>%
84+
arrange(.data[["time"]]) %>%
8585
# Calculate time between this row and the next
8686
mutate(interval_duration = (lead(.data[["time"]]) - .data[["time"]])) %>%
8787
# Multiply each patient count by its own unique duration. The total of

man/calc_mean_patients_in_service.Rd

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)