-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added copenhagen case study rmd for adapting
- Loading branch information
1 parent
4173ae5
commit 3f522aa
Showing
15 changed files
with
10,818 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+13.7 KB
Copenhagen_introsim/Copenhagen_R_guide_files/figure-html/hist_age-1.png
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
BIN
+14.5 KB
Copenhagen_introsim/Copenhagen_R_guide_files/figure-html/onset_histogram-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
5,603 changes: 5,603 additions & 0 deletions
5,603
Copenhagen_introsim/guide/Copenhagen_R_guide.html
Large diffs are not rendered by default.
Oops, something went wrong.
1,251 changes: 1,251 additions & 0 deletions
1,251
Copenhagen_introsim/rscripts/Copenhagen_R_template.R
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
||
########################################################################### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
File renamed without changes