Question: Please RStudio to solve question 2 0 - 3 2 Use the following tabular data consisting of 6 records to create a data frame object

Please RStudio to solve question 20-32
Use the following tabular data consisting of 6 records to create a data frame object
named cars and print it. The data consists of 7 different features of 6 cars. You may
use vectors along with the data.frame function to create the cars object.
Print the output of the str function for the cars data frame.
Update the cars data frame by adding ("Toyota Corolla" 33.9471.1654.221.835).
Print the updated data frame. In the following questions always use the updated cars
object.
Use the updated data frame to sort and print cars by mpg variable in ascending order.
Use the updated data frame to print the car record with the third largest disp.
Use the updated data frame to employ the table and cut functions to print the fre-
quency distribution of the cars falling into bins of 2 mpg starting from 16. That is, bin
the mpg into intervals of two starting from 16.
Use the updated data frame to create and print a new data frame object called
fast.cars by subsetting only mpg and disp columns and including the cars only
with 110 hp or higher.
Please RStudio to solve question 2 0 - 3 2 Use

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!