# Online Obituaries as a Complementary Source of Data for Mortality in Canada

This project uses **R version 4.2.1**.

This R project environment contains the following components:

- **R Project File**  
  An R project file named `VioloOuellette.Rproj` should be opened and executed to automatically set the working directory (`getwd()`) so that all relative file references function properly.

- **Scripts Folder**  
  Contains scripts for data cleaning and regular expression variable extraction for Quebec and Ontario separately.  
  Also includes an R script to generate all the graphs referenced in the research paper.  
  Additionally, there is a script that presents pseudocode for web scraping a site such as necrocanada.com.  
  The exact web scraping code is not shared, as it is advisable to obtain ethical approval before engaging in such activities.

- **Outputs Folder**  
  Serves as the destination for saving the aforementioned outputs.

- **Mock Data Folder**  
  Contains 1,000 AI-generated obituaries in both English and French, providing readers with examples of the data format used for obituaries.  
  **Note:** Because these are mock data, the results and graphs generated using this data will not be the same as those presented in the paper.
