Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

DataCamp

Introduction to R

via DataCamp

Overview

Master the basics of data analysis in R, including vectors, lists, and data frames, and practice R with real data sets.

In this introduction to R course, you'll master the basics of this widely used open source language—including vectors, factors, lists, and data frames. With the coding skills you'll gain in this course, you'll be ready to undertake your own data analysis in R. There are millions of R users worldwide, cementing it as a leading programming language in statistics and data science. Begin your coding journey in one of DataCamp's most popular courses today!

Syllabus

Intro to basics
-Take your first steps with R. In this chapter, you will learn how to use the console as a calculator and how to assign variables. You will also get to know the basic data types in R. Let's get started.

Vectors
-We take you on a trip to Vegas, where you will learn how to analyze your gambling results using vectors in R. After completing this chapter, you will be able to create vectors in R, name them, select elements from them, and compare different vectors.

Matrices
-In this chapter, you will learn how to work with matrices in R. By the end of the chapter, you will be able to create matrices and understand how to do basic computations with them. You will analyze the box office numbers of the Star Wars movies and learn how to use matrices in R. May the force be with you!

Factors
-Data often falls into a limited number of categories. For example, human hair color can be categorized as black, brown, blond, red, grey, or white—and perhaps a few more options for people who color their hair. In R, categorical data is stored in factors. Factors are very important in data analysis, so start learning how to create, subset, and compare them now.

Data frames
-Most datasets you will be working with will be stored as data frames. By the end of this chapter, you will be able to create a data frame, select interesting parts of a data frame, and order a data frame according to certain variables.

Lists
-As opposed to vectors, lists can hold components of different types, just as your to-do lists can contain different categories of tasks. This chapter will teach you how to create, name, and subset these lists.

Reviews

4.1 rating, based on 7 Class Central reviews

4.7 rating at DataCamp based on 518 ratings

Start your review of Introduction to R

  • Introduction to R is one of several free introductory level courses offered by DataCamp--an education platform for learning data science skills with a heavy focus on interactive coding exercises. The intro to R course is the first for 23 courses in…
  • John Charles
    Hands down the best way to learn R. Extremely informative and clearly written lessons that provide the right balance of instruction and challenge. I would recommend DataCamp (and have) to anyone looking to learn the functional skills for a career in data science.
  • Profile image for Claudia Scwz
    Claudia Scwz
    This course is too easy! It could condense information a lot more and provide more practical examples. I guess it works if you're an absolute beginner and not at all familiar with any programming languages.
  • Anonymous
    Datacamp classes give you a really nice walk through of the concepts with coding examples in the language with talks in between sections that provide a clear overview of the topic.

    You're not going to be an expert after taking a section but will know where to look and also build on familiarity with the language. Much better than just reading about code in a textbook or taking on a huge project with no idea where to start.
  • Anonymous
    Great course to start with R in data science. I'm 5 courses in at this point and love the DataCamp model of using video and coding exercises together. For me, it is the best tool out there.
  • Anonymous
    You only get 1 module for free, and it took me ~20 minutes to complete. It had a nice layout though, and I did like its approach to teaching.
  • Monal Jain

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.