October 2017
Beginner to intermediate
236 pages
7h 38m
English
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: