Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

  1. From the mtcars dataset, find the unique values of the gear variable. Print.

  2. Use a for loop to find the average hp for each unique gear. Show code and output.

  3. Which number of gears is associated with the highest horse power hp? State in a complete sentence.

  4. Which cars have 5 forward gears? State in a complete sentence.

  1. Use tapply to find the average hp for each unique number of forward gears (gear). Show code and output.

  2. Create a dataframe with two columns. One column should be unique gear. One column should be average hp

  3. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions