Skip to main contentSkip to Xpert Chatbot

HarvardX: Data Science: R Basics

4.4 stars
188 ratings

Build a foundation in R and learn how to wrangle, analyze, and visualize data.

Data Science: R Basics
8 weeks
1–2 hours per week
Self-paced
Progress at your own speed
Free
Optional upgrade available

Choose your session:

905,508 already enrolled! After a course session ends, it will be archivedOpens in a new tab.
Starts Nov 26
Ends Dec 18
Starts Nov 26
Starts Apr 16, 2025

About this course

Skip About this course

The first in our Professional Certificate Program in Data Science, this course will introduce you to the basics of R programming. You can better retain R when you learn it to solve a specific problem, so you'll use a real-world dataset about crime in the United States. You will learn the R skills needed to answer essential questions about differences in crime across the different states.

We'll cover R's functions and data types, then tackle how to operate on vectors and when to use advanced functions like sorting. You'll learn how to apply general programming features like "if-else," and "for loop" commands, and how to wrangle, analyze and visualize data.

Rather than covering every R skill you might need, you'll build a strong foundation to prepare you for the more in-depth courses later in the series, where we cover concepts like probability, inference, regression, and machine learning. We help you develop a skill set that includes R programming, data wrangling with dplyr, data visualization with ggplot2, file organization with UNIX/Linux, version control with git and GitHub, and reproducible document preparation with RStudio.

The demand for skilled data science practitioners is rapidly growing, and this series prepares you to tackle real-world data analysis challenges.

At a glance

  • Institution: HarvardX
  • Subject: Data Analysis & Statistics
  • Level: Introductory
  • Prerequisites:

    An up-to-date browser is recommended to enable programming directly in a browser-based interface.

  • Associated programs:
  • Language: English
  • Video Transcript: English
  • Associated skills:Data Science, Data Wrangling, Version Control, Document Preparations, File Organization, Linux, Unix, Github, Dplyr, R (Programming Language), Probability, Data Analysis, Sorting, Ggplot2, Git (Version Control System), Machine Learning, Data Visualization, RStudio

What you'll learn

Skip What you'll learn
  • Basic R syntax
  • Foundational R programming concepts such as data types, vectors arithmetic, and indexing
  • How to perform operations in R including sorting, data wrangling using dplyr, and making plots

Frequently Asked Questions

Skip Frequently Asked Questions

Honor code statement
HarvardX requires individuals who enroll in its courses on edX to abide by the terms of the edX honor code. HarvardX will take appropriate corrective action in response to violations of the edX honor code, which may include dismissal from the HarvardX course; revocation of any certificates received for the HarvardX course; or other remedies as circumstances warrant. No refunds will be issued in the case of corrective action for such violations. Enrollees who are taking HarvardX courses as part of another program will also be governed by the academic policies of those programs.

Research statement
By registering as an online learner in our open online courses, you are also participating in research intended to enhance HarvardX's instructional offerings as well as the quality of learning and related sciences worldwide. In the interest of research, you may be exposed to some variations in the course materials. HarvardX does not use learner data for any purpose beyond the University's stated missions of education and research. For purposes of research, we may share information we collect from online learning activities, including Personally Identifiable Information, with researchers beyond Harvard. However, your Personally Identifiable Information will only be shared as permitted by applicable law, will be limited to what is necessary to perform the research, and will be subject to an agreement to protect the data. We may also share with the public or third parties aggregated information that does not personally identify you. Similarly, any research findings will be reported at the aggregate level and will not expose your personal identity.

Please read the edX Privacy Policy for more information regarding the processing, transmission, and use of data collected through the edX platform.

Nondiscrimination/anti-harassment statement
Harvard University and HarvardX are committed to maintaining a safe and healthy educational and work environment in which no member of the community is excluded from participation in, denied the benefits of, or subjected to discrimination or harassment in our program. All members of the HarvardX community are expected to abide by Harvard policies on nondiscrimination, including sexual harassment, and the edX Terms of Service. If you have any questions or concerns, please contact harvardx@harvard.edu and/or report your experience through the edX contact form.

This course is part of Data Science Professional Certificate Program

Learn more 
Expert instruction
9 skill-building courses
Self-paced
Progress at your own speed
1 year 5 months
2 - 3 hours per week

Interested in this course for your business or team?

Train your employees in the most in-demand topics, with edX For Business.