Question: run the code in Rstudio and paste the results. FAKE EXPERTS stay away Write commands in R to perform the following 1) Create a new

run the code in Rstudio and paste the results.
FAKE EXPERTS stay away
Write commands in R to perform the following 1) Create a new dataframe which contalns only those car models whilch has hp value more than 80 and mps value greater than 20 . [2 Marics] i) Create a new dataframe which contains all the atbibutes except the two attributes. namaly hp and wt. [2 Maria] iii) Using a single comanand in R, create a new column, with the aame hp performance, which can talee only three values, Le, lew, medtum, and high. If the hp value is less than 70 , then hp_performance value will be low. If the hp value is greater than 70 and lees than 100 , then bp_performance value will be mediam. If the hp value is gereater than 100 , then hp_performance value wilt be bigh. [2 Marlis] iv) Write the command to sort the attribute cyl in ascending order and the attribute disp in descending order. [2 Marica] v) In the attribute cyl, replace the values less than 5 with NA value. [2 Marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
