This repository contains the reproducible analytical pipeline (RAP) used to create the quarterly Suspected Drug Deaths publication. The data is sourced from management information collected by Police Scotland, and a list of previous publications can be found here.
Compiling the final document requires executing the following:
- When Police Scotland furnish Scottish Government with new data (i.e. every quarter) an updated .xlsx dataset must be saved into the Data folder
- Update the
Readingdata
function in the2_Wrangling.R
script (in the Mainfunctions folder) to reflect the dataset name you saved in Step 1 - In the
README
chunk of theMainoutput.Rmd
Markdown document, change the source call to whichever quarter it is. For example, if you are reporting on suspected drug deaths for Q3 – that is, July to September of a given year – the source will be"~/Q3_Functions.R"
. Note as well that chart titles will need to be modified as appropriate.
Classifying a death as drug-related is complex. In Scotland there are two different sets of statistics on the number of drug deaths. The suspected drug deaths reported here are classified as such based on an officer’s observations and initial enquiries at the scene of death. Note that these are NOT the Official Statistics published by the National Records of Scotland. Instead they are intended to provide an indicator of recent drug death trends in Scotland, to inform prevention and enforcement activities. More information on the methods can be found in the Background_doc.Rmd
markdown file.