View source: R/wl_queue_size.R
wl_queue_size | R Documentation |
Calculates queue sizes from a waiting list
wl_queue_size(
waiting_list,
start_date = NULL,
end_date = NULL,
referral_index = 1,
removal_index = 2
)
waiting_list |
data.frame consisting addition and removal dates |
start_date |
start of calculation period |
end_date |
end of calculation period |
referral_index |
the index of referrals in waiting_list |
removal_index |
the index of removals in waiting_list |
a list of dates and queue sizes
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)
wl_queue_size(waiting_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.