Skip to Content
Modern R Programming Cookbook
book

Modern R Programming Cookbook

by Jaynal Abedin
October 2017
Beginner to intermediate
236 pages
7h 38m
English
Packt Publishing
Content preview from Modern R Programming Cookbook

Getting ready

Whenever it comes to the issue of working with a smaller number of variables from the original bigger dataset, it is better to do the task on the fly. You can create another data frame by taking a small number of variables, but again it will consume extra memory. Rather than creating a new data frame by taking a few variables, you can perform the operation on the fly using the select() verb of dplyr. In this recipe, you will apply the select() verb to create a subset of the original USAairlineData2016 dataset by taking only the following variables:

  • QUARTER
  • MONTH
  • ORIGIN
  • DEST
  • DEP_DELAY
  • ARR_DELAY
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 Cookbook, 2nd Edition

R Cookbook, 2nd Edition

JD Long, Paul Teetor

Publisher Resources

ISBN: 9781787129054Supplemental Content