R introduction: A Beginner’s Workshop

(Artwork by @allison_horst)

This is an R workshop for first-time R users, and no prior programming experience is required to follow along. The source materials are collected from various sources. We also use a lot of open source data-sets for this workshop, some from R packages and some from the wonderful OpenIntro website. The OpenIntro webpage is also an excellent source of finding open data sets for different types of data science or statistics course or educational purposes.

Set-up, R codes etc.

First things first, you will need to install R and RStudio.

Here is an excellent tutorial that takes you step-by-step through this: https://learnr-examples.shinyapps.io/ex-setup-r/

Once you have both of them installed on your local machine, you are ready to take this tutorial.

If you want to download the entire set of just the R codes, or the R-markdown files for creating the HTML files or the PDF versions, you can download the entire folder from Github: https://github.com/DattaHub/BeginneR. Click on the blue “<>Code” button on the top-right corner and click “local” to see the download as zip file option.

The following topics are covered.

Part 1:

  1. What is R?
  2. Vectors and Data types.
  3. Working with Data frames.

Part 2: Tidyverse

  1. Data wrangling with dplyr
  2. Visualization with ggplot

Part 3:

  1. Dynamic documentation: R markdown
  2. (Very basic) Statistics.

Acknowledgment

This was originally a repository for a Beginner’s R Workshop that was offered at University of Arkansas when I worked there, and since then this has been replicated and modified a few times.

The codes are not original or written by me, these are curated from a number of different sources including the excellent tutorials provided by the Ann Arbor R users’ group, based on the Software Carpentry, Rachel’s R turorial and JD’s own intro stats teaching materials.