plot_ed_occupancy_hour_of_week: Unscheduled emergency department occupancy by weekday and...

View source: R/plot_ed_occupancy_hour_of_week.R

plot_ed_occupancy_hour_of_weekR Documentation

Unscheduled emergency department occupancy by weekday and hour

Description

plot_ed_occupancy_hour_of_week shows average occupancy in an emergency department throughout weekdays (Mon-Sun).

Usage

plot_ed_occupancy_hour_of_week(
  data,
  startDate,
  endDate,
  returnPlot = TRUE,
  hospitalName = "{hospital_name}"
)

Arguments

data

Hospital episode data.

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.

Value

A plot (default) or a dataframe showing average emergency department occupancy by weekday and hour.

Examples

## Not run: 
TBD

## End(Not run)

HorridTom/hospitalflow documentation built on June 14, 2022, noon