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
Use the following tabular data consisting of records to create a data frame object
named cars and print it The data consists of different features of 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"
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 mpg starting from That is bin
the mpg into intervals of two starting from
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 hp or higher.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
