Emory ACBE Meeting March 2023 - R Exercise on Text Parsing
Add a short description here...
- Melinda Higgins, PhD
- Director Biostatistics and Data Core
- Office of Nursing Research
- School of Nursing - Emory University
- melinda.higgins@emory.edu
- Install R https://cran.r-project.org/
- see instructions on installing R in chapter 1 of Modern Dive Book
- Install RStudio Desktop https://posit.co/download/rstudio-desktop/
-
- see instructions on installing R in chapter 1 of Modern Dive Book
-
- Install the R packages listed below.
- see instruction on how to install packages at Chapter 1.3.1 in the Modern Dive Book.
- Download datasets and mapfiles:
OPTIONAL PREP
- OPTIONAL if you are still actively enrolled in RSPH, you can also run R and RStudio in the Emory RSPH virtual desktop using Apporto, https://rsphemory.apporto.com/.
- Online BOOKS to get started:
- Statistical Inference via Data Science: A ModernDive into R and the Tidyverse! by Chester Ismay and Albert Y. Kim https://moderndive.netlify.app/.
- R in Action, Third Edition: Data analysis and graphics with R and Tidyverse by Robert I. Kabacoff https://www.manning.com/books/r-in-action-third-edition
- The Epidemiologist R Handbook https://epirhandbook.com/en/
See packages listed on CRAN - click on "Packages". All of the packages on CRAN can be installed inside RStudio by clicking on "Tools/Install Packages" top menu.
-
tidyverse
website ontidyverse
on CRAN- which includes:ggplot2
website and on CRAN- [
dplyr
website](https://dplyr.tidyverse.org/ and on CRAN) readr
website and on CRANhaven
website and on CRAN and more packages are included
-
palmerpenguins
website and on CRAN -
patchwork
website and on CRAN -
Hmisc
website and on CRAN -
psych
website and on CRAN -
arsenal
website and on CRAN -
readxl
website and on CRAN -
data.table
website and on CRAN -
sf
website and on CRAN -
leaflet
website and on CRAN -
OPTIONAL
ggthemr
on Github - this one is not yet on CRAN and is totally optional to install. For this you will need thedevtools
package which is available on CRAN. Once you havedevtools
installed, you can optionally install theggthemr
package by typing the following command:
devtools::install_github('Mikata-Project/ggthemr')
This workshop will cover (final list in development):
- Module 01
- An introduction to R and RStudio
- Learning about R Objects and data structures
- Module 02
- Introduction to R packages
- Loading data, Saving data (read/write datasets)
- Module 03
- Data Visualization with
ggplot2
package
- Data Visualization with
- Module 04
- Brief Intro Data Wrangling with
dplyr
package
- Brief Intro Data Wrangling with
- Module 05
- Introduction to Rmarkdown
- Exercise - creating Rmarkdown Report
- Module 06
- Using
dplyr
to join datasets
- Using
- Module 07
- Putting it all together into a "COVID Case Report"
- Module 08
- Open Dialog - audience questions
🗓️ November 11, 2022
⏰ 09:00 - 16:00
Time | Activity |
---|---|
09:00 - 09:25 | Module 1 [Slides and R script] |
09:25 - 09:50 | Module 2 [Slides and R script] |
------------- | ---------------- |
09:50 - 10:00 | BIO Break |
------------- | ---------------- |
10:00 - 10:30 | Module 3 [Slides and R script] |
R Scripts w/Answers | |
10:30 - 11:00 | Module 4 [Slides and R script] |
R Scripts w/Answers | |
------------- | ---------------- |
11:00 - 12:00 | Breakout Session 1 [working on exercises from above modules] |
12:00 - 13:00 | LUNCH BREAK |
------------- | ---------------- |
13:00 - 13:25 | Module 5 Abalone Rmarkdown Report and Rmarkdown file |
Abalone RMarkdown w/Answers Rmarkdown file | |
13:25 - 13:50 | Module 6 Merging Datasets Exercise and Rmarkdown file |
data1.csv | |
data2.csv | |
data.table exercise R script |
|
------------- | ---------------- |
13:50 - 14:00 | BIO Break |
------------- | ---------------- |
14:00 - 14:30 | Module 7 COVID Cases Report and Rmarkdown file |
14:30 - 15:00 | Module 8 Open Q&A |
------------- | ---------------- |
15:00 - 16:00 | Breakout Session 2 [working on exercises from modules and more editing on COVID case report] |
------------- | ---------------- |
- To be added later...
- Rmarkdown by RStudio
- R Markdown: The Definitive Guide
- R Markdown Cookbook
- Example Blog http://jenrichmond.rbind.io/post/2021-08-31-parameterised-penguins/
- Example Document https://rpubs.com/jenrichmond/adelie
- RStudio Education
- Quick-R
- BOOK: R in Action, 3rd ed.
- Datacamp
- Coursera
- My Emory Courses:
- BOOK: Statistical Inference via Data Science
- BOOK: The Epidemiologist R Handbook
- BOOK: R Graphics Cookbook, 2nd edition by Winston Chang and associated R Graphics Cookbook website
- The R Graph Gallery