plot_ed_arrival_occupancy_hour_of_day: Average emergency department arrival occupancy by time of the...

View source: R/plot_ed_arrival_occupancy_hour_of_day.R

plot_ed_arrival_occupancy_hour_of_dayR Documentation

Average emergency department arrival occupancy by time of the day

Description

plot_ed_arrival_occupancy_hour_of_day returns average daily occupancy of the emergency department by hours of the day either as a plot (default) or a dataframe.

Usage

plot_ed_arrival_occupancy_hour_of_day(
  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 occupancy of emergency department over a day.

Examples

## Not run: 
TBD

## End(Not run)

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