This is an R package for internal use at MLW to run the High Dependency Research Unit data dashboard.
# install.packages("devtools")
devtools::install_github("mlw-stats/HDRU")
This is currently a private repository, so for the install_github()
command to work, you will need to generate an access token first (you can do this by going here).
You will need to
The example below assumes you've got the 2 input data files sitting in your working directory.
library(HDRU)
admissionData<-read.csv("hdru_admission_raw.csv")
dailyData<-read.csv("hdru_daily_raw.csv")
curPeriod<-dmy("06/07/2020","13/07/2020","20/07/2020","27/07/2020")
HDRUdashboard(admissionData=admissionData,dailyData=dailyData,curPeriod=curPeriod,unit="week",file.name="HDRUdashboard.html")
Once you have run the HDRUdashboard
function, open the specified output html file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.