Question
All those are R related questions I resolved Task1 But I need help about Task2.. Also may I get some comment for each programming orders.
All those are R related questions
I resolved Task1 But I need help about Task2..
Also may I get some comment for each programming orders.
-
From the mtcars dataset, find the unique values of the gear variable. Print.
-
Use a for loop to find the average hp for each unique gear. Show code and output.
-
Which number of gears is associated with the highest horse power hp? State in a complete sentence.
-
Which cars have 5 forward gears? State in a complete sentence.
-
Use tapply to find the average hp for each unique number of forward gears (gear). Show code and output.
-
Create a dataframe with two columns. One column should be unique gear. One column should be average hp
-
Compare to the answer for Task 1.2. Are they the same? Which approach is more efficient? Explain.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started