May 2019
Beginner to intermediate
266 pages
5h 57m
English
This function is used to choose the required display variables based on specific criteria.
The syntax for calling this function is as follows:
select(dataset, column1, column2, ...)
The implementation of the select() function with respect to our mpg dataset is as follows:
> mpgSubset <- select(mpg, manufacturer, model) > View(mpgSubset)
This subset will only include information relating to the manufacturer and model. We can remove and add our selection criteria as per our requirements:

Read now
Unlock full access