Skip to content

Commit

Permalink
Added copenhagen case study rmd for adapting
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyMikhail committed Sep 1, 2023
1 parent 4173ae5 commit 3f522aa
Show file tree
Hide file tree
Showing 15 changed files with 10,818 additions and 0 deletions.
File renamed without changes.
499 changes: 499 additions & 0 deletions Copenhagen_introsim/Copenhagen_R_guide.R

Large diffs are not rendered by default.

3,012 changes: 3,012 additions & 0 deletions Copenhagen_introsim/Copenhagen_R_guide.Rmd

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Copenhagen_introsim/data/Copenhagen_clean.xlsx
Binary file not shown.
398 changes: 398 additions & 0 deletions Copenhagen_introsim/data/Copenhagen_raw.csv

Large diffs are not rendered by default.

5,603 changes: 5,603 additions & 0 deletions Copenhagen_introsim/guide/Copenhagen_R_guide.html

Large diffs are not rendered by default.

1,251 changes: 1,251 additions & 0 deletions Copenhagen_introsim/rscripts/Copenhagen_R_template.R

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions Copenhagen_introsim/rscripts/Copenhagen_pkgs2install.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
########################################################
# COPENHAGEN CASE STUDY - PACKAGES TO INSTALL
########################################################

# INSTRUCTIONS:

# Open a fresh RStudio session
# Make sure no scripts, files or data are open.
# Go to Session --> Restart R and select it to start a fresh R session
# Highlight this script and press the run button
# Do not attempt to do anything in R until it is finished;
# The script will take a few minutes
# Happy R coding!


# Install pacman ----------------------------------------------------------

# Check if the 'pacman' package is installed, if not install it:
if (!requireNamespace("pacman", quietly = TRUE)) install.packages("pacman")



# Install remaining packages ----------------------------------------------

# Load the required libraries into the current R session:
pacman::p_load(rio,
here,
tidyverse,
skimr,
janitor,
lubridate,
gtsummary,
flextable,
officer,
EpiStats,
epikit,
apyramid,
scales,
update = TRUE)

###########################################################################

13 changes: 13 additions & 0 deletions IntroductoryCourse.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX
File renamed without changes.
File renamed without changes
File renamed without changes

0 comments on commit 3f522aa

Please sign in to comment.