lytello / R-Fundamentals

12-hour intro to data science in R, no prior knowledge assumed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

D-Lab R Fundamentals introductory workshop series

This is the repository for D-Lab's introductory R-Fundamentals workshop series. Laptop, Internet connection, and Zoom account required.

Download and install R and RStudio and the workshop materials to get started. Before Part 1 be sure to:

To install R to use locally on your own machine, follow these instructions:

  1. Download and install R
  2. Download and install RStudio Desktop Open Source License FREE
  3. Download the R-Fundamentals workshop materials. To run these lessons on your laptop:
  • Click the green “Clone or download” button
  • Click “Download Zip”
  • Extract the files some place convenient (i.e., Desktop)

If you are a Git user, simply clone this repository by opening a terminal and typing: git clone git@github.com:dlab-berkeley/R-Fundamentals.git

Is RStudio not working on your laptop?

You can also access RStudio through your browser on UC Berkeley's DataHub by clicking this link. Datahub is a great option if you aren't able to install R and RStudio locally. CalNet ID credentials required.

Workshop goals

There are four code files in this repository that we will walk through. The following topics will be covered:

Part1.R - Introduction to R, navigating RStudio, variable assignment, data types and coercion, data structures
Part2.R - Import, subset, and merge data; identify missing data
Part3.R - Research design, data summarization and visualization, statistical testing
Part4.R - For-loops, custom functions, basic automation

Start running the code!

Open the file "Part1.R" to begin. Place your cursor on a line of runnable code (lines without hashtags preceding them) and click the "Run" button or press Ctrl + Enter (PC) or command + Enter (Mac) to run a line of code. The output will appear in the "Console" section of RStudio.

About the UC Berkeley D-Lab

D-Lab works with Berkeley faculty, research staff, and students to advance data-intensive social science and humanities research. Our goal at D-Lab is to provide practical training, staff support, resources, and space to enable you to use R for your own research applications. Our services cater to all skill levels and no programming, statistical, or computer science backgrounds are necessary. We offer these services in the form of workshops such as R Fundamentals, one-to-one consulting, and working groups that cover a variety of research topics, digital tools, and programming languages.

Visit the D-Lab homepage to learn more about us. View our calendar for upcoming events, and also learn about how to utilize our consulting and data services.

Other D-Lab R workshops

Basic Competency

Intermediate/Advanced Competency

Visit these sites for R help:

Web Resources

Books

UC Berkeley departments and course offerings:

Courses

Don't know where to start researching classes? Look up some of these to see if they pique your interest: Data 8, CS61A, CS61B, CS 61C, CS70/Math 55, CS 188, CS 189, Math 53, Math 54, Math 110, Stat 28, Stat 20/21, Stat 133, Stat 134/140, Data 100.

UC Berkeley online courses:

Contributions to these materials by:

About

12-hour intro to data science in R, no prior knowledge assumed

License:Other


Languages

Language:R 100.0%