- Study title: Trends in the use of commonly used antibiotics associated with antimicrobial resistance
- Study leads:
- ShinyApp:
- Publications:
- R and RStudio are required to run the code.
- Ensure that you have access to the database and necessary credentials to connect.
-
Download the Repository
Download this repository:- Either download as a ZIP file using
Code -> Download ZIP
, then unzip. - Or, use GitHub Desktop to clone the repository.
- Either download as a ZIP file using
-
Open the R Project
- Navigate to the
Study
folder and open the project fileStudy.Rproj
in RStudio. - You should see the project name in the top-right corner of your RStudio session.
- Navigate to the
-
Run the Analysis Code
- Open the
CodeToRun.R
file. This is the main script you’ll use. - Follow the instructions within the file to add your database-specific information.
- Run the code as directed. This will generate a
Results
folder containing the outputs, including a ZIP file with the results for sharing. The name of the zip file will be of the formatDED_Results_database_name.zip
.
- Open the
-
OPTIONAL: Visualize Results in Shiny
- Navigate to the
Report
folder, then theDED_shiny
folder, and open the project fileDrugExposureDiagnosticsShiny.Rproj
in RStudio. - You should see the project name in the top-right corner of your RStudio session.
- Copy the generated result file (in .zip format) into the
data
folder located within theDED_shiny
folder. - Open the
global.R
script in theDED_shiny
folder. - Click the Run App button in RStudio to launch the local Shiny app for interactive exploration of the results.
- Navigate to the
This repo is organized as follows: