Skip to content

arcus/r102

Repository files navigation

This is the GitHub repository for the workshop series called R 102: MasteRing Fundamentals in R, given at the Children's Hospital of Philadelphia (CHOP) by Arcus Education and the CHOP R User Group.

This repository contains the files you need to be able to complete the exercises in each of the workshop sessions.
Exercises for you to complete are in the exercises folder, and working solutions files are found in solutions.

About this workshop series

Welcome to R102! This series is aimed at people who have had a little exposure to the R programming language before, but are still beginners. If you've attended a previous Intro to R for Clinical Data Workshop, for example, then these workshops will hopefully be the perfect next step!

If you're brand new to R, you're still welcome to attend but you may find it harder to follow along actively with the code.

This workshop series is free and does not require any paid software.
You will need a computer and a robust internet connection, however.

What are participants saying?

We send out (very brief!) surveys after each workshop to help us to assess what's working well and what isn't. We are reading your responses carefully. Thank you very much to everyone who has so far taken the time to respond!

Here are some of the results from our Missing Values in R workshop:

If you see that plot and wish you too could get your level of understanding up to "I am confident in my ability to do it" but you missed the workshop, never fear! The slides, code, and recordings for each workshop are linked on this page under workshop sessions as soon as we have them available.

Workshop sessions

You're welcome to attend the whole series, or just pick the dates/topics that work best for you. Material in later sessions will not require you to have been at earlier sessions.

Use this form to register to attend one or more workshop sessions.

For all of the talks, you can work hands-on with the code and see solutions in our Posit.cloud project

Before your first workshop session

Before attending a workshop session, please do the following.

Necessary:

  • Create a free Posit.cloud account. We will use this as our training environment and you will have continued access to your code and materials after the workshop, through your account at Posit.cloud.
  • Please review our Code of Conduct.

Highly Recommended:

  • Install or update the Google Chrome browser on the computer you'll use. We highly recommend you use Chrome to access our workshop training environment.
  • Download and install the latest version of Teams (you may also choose to join in a browser).
  • Consider installing R and RStudio Desktop on your computer, so you can hit the ground running after the workshop finishes!
  • If you haven't already, and you're a CHOP or Penn employee, please consider joining CHOP's R User Group.

On the day of your workshop, we suggest the following:

  • If available to you, use two monitors (or another two-screen setup such as a laptop and a tablet or two laptops).
  • Follow along in the slides, if you like.

Where to do the exercises

Use Posit.cloud

The easiest way to do the workshop exercises is to create a free account at https://posit.cloud and then go to our workshop project and make your own permanent copy of this project so you can make changes and work with it later.

Alternately, in Posit Cloud you can also add a new project and select "New Project from Git Repository" and enter the url of this repository, namely https://github.com/arcus/r102.

Use Your Own R/RStudio

If you want, you can install R and RStudio Desktop for free on your computer, following the instructions Posit offers. Then you can either:

  • Use File > New Project to create a new project from version control and add the URL of this repository (namely, https://github.com/arcus/r102)
  • Download the files in this repository (the green "Code" button will allow you to download a zip file of this repository's contents) and then use File > New Project > Existing Directory to create an R project in the directory where you stashed those files.

Dependencies

The files here depend on several R libraries, which you can install using the following command:

install.packages(c(
  "tidyverse",
  "rmarkdown",
  "medicaldata",
  "gtsummary"
))

Slides

Slides of the teaching presentation that accompany each of the workshop sessions are available and you are welcome to follow along or refer back to them at a later date.
The source code for these slides is included in the directory quarto_slides in this repository.

License

All of the material in this GitHub repository is copyrighted under the Creative Commons BY-SA 4.0 copyright to make the material easy to reuse. We encourage you to reuse it and adapt it for your own teaching as you like!

Acknowledgements

Material for some of these sessions was adapted from DART data science learning modules, a project developed by the Arcus Data Education team at CHOP. In particular, the following modules were adapted for workshop sessions:

Three cheers for remixing and reusing open education materials!