-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwl_stats.Rd
executable file
·38 lines (33 loc) · 959 Bytes
/
wl_stats.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wl_stats.R
\name{wl_stats}
\alias{wl_stats}
\title{Calculate some stats about the waiting list}
\usage{
wl_stats(
waiting_list,
target_wait = 4,
categories = NULL,
start_date = NULL,
end_date = NULL,
target_index = NULL
)
}
\arguments{
\item{waiting_list}{dataframe. A df of referral dates and removals}
\item{target_wait}{numeric. The required waiting time}
\item{start_date}{date. The start date to calculate from}
\item{end_date}{date. The end date to calculate to}
}
\value{
dataframe. A df of important waiting list statistics
}
\description{
A summary of all the key stats associated with a waiting list
}
\examples{
referrals <- c.Date("2024-01-01", "2024-01-04", "2024-01-10", "2024-01-16")
removals <- c.Date("2024-01-08", NA, NA, NA)
waiting_list <- data.frame("referral" = referrals, "removal" = removals)
waiting_list_stats <- wl_stats(waiting_list)
}