View source: R/plot_admissions_discharges_day_of_week.R
plot_admissions_discharges_day_of_week | R Documentation |
plot_admissions_discharges_day_of_week
returns average daily hospital
arrivals and discharges by days of the week either as a plot (default) or a
dataframe.
plot_admissions_discharges_day_of_week( data, startDate, endDate, returnPlot = TRUE, hospitalName = "Hospital name" )
data |
Hospital episode data with at least the following fields:
|
startDate |
Date of earliest discharge to be included in the analysis. |
endDate |
Date of latest admission to be included in the analysis. |
returnPlot |
If TRUE returns a plot, otherwise returns a dataframe. |
hospitalName |
Name of the hospital. |
A plot (default) or a dataframe showing average admissions and discharges on each day of the week.
## Not run: plot_admissions_discharges_day_of_week( data = example_data, startDate = "2015-01-01 00:00:00", endDate = "2015-02-01 00:00:00", returnPlot = TRUE ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.