Skip to Content
R Programming Fundamentals
book

R Programming Fundamentals

by Kaelen Medeiros
September 2018
Beginner
206 pages
4h 27m
English
Packt Publishing
Content preview from R Programming Fundamentals

Activity: Merging and Joining Data

Scenario

You work at a school, where you've been tasked with updating the data for one of the high school English classes. Use your merging and joining skills to get the data in the final state your boss requires.

Aim

To practice merging and joining datasets. Prerequisites Make sure that R and RStudio are installed on your machine.

Steps for Completion

  1. Re-import the students dataset from the repository on GitHub. The best way to do this is by using the following code:
read_csv("https://github.com/TrainingByPackt/R-Programming-Fundamentals/blob/master/lesson1/students.csv")
  To use this code, you have to load the readr package!

Add an id variable to students equal to the number of rows of students.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R Programming Fundamentals

R Programming Fundamentals

Samik Sen, Marcin Dubel
Python for Programmers

Python for Programmers

Paul Deitel, Harvey Deitel

Publisher Resources

ISBN: 9781789612998Supplemental Content