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

Demonstrating Merges and Joins in R

Herein, we will use the base R merge() function and the dplyr join functions to work out how to merge and join data in R, comparing and contrasting the two functions throughout.

In order to do so, the following steps need to be executed:

  1. Install and load the readr package, which contains functions that read in data much faster than the baseR data read functions:
install.packages("readr") library(readr)
  1. Download the students and students2 datasets from the GitHub repository:
students <- read_csv("https://raw.githubusercontent.com/ TrainingByPackt/R-Programming-Fundamentals/master/lesson3/students.csv") students2 <- read_csv("https://raw.githubusercontent.com/ TrainingByPackt/R-Programming-Fundamentals/master/lesson3/students2.csv") ...
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