You will need the R and RStudio software installed to complete this assignment. Please follow the instructions in section 1.2 of the reading to complete the installation. Complete the following requirements: The R software includes several built-in data sets. This assignment will use the Motor Trend Cars data set named mtcars. Import this data set into a new data frame called CarData, using this command: CarData <- mtcars Run the following commands, and use the results to answer the questions below: summary(CarData) sd(CarData$hp) table(CarData$cyl) str(CarData) hist(CarData$hp) Points: 60 Started on Aug 18 at 14:57Your Submission: Using results from the summary() function, what is the median value for the qsec attribute? A.14.50 B. 19.28 C. 17.71 D. 17.85 Using results from the summary() function, what is the horsepower (hp) of the most powerful vehicle in the data set? A. 146.7 B. 467.3 C. 335.0 D. 472.0 Using results from the summary() function, what is the average weight of the vehicles in the data set? A. 3.217 B. 3.325 C. 3.610 D. 3.117 Using results from the summary() function, what is the lowest fuel economy as measured in miles per gallon (mpg)? A. 10.40 B. 4.0 C. 71.10 D. 19.21 Based on the results of the standard deviation function (sd()), about how much do the horsepower (hp) values vary from the average of 146.7? A. 76.8 B. 68.6 C. 63.8 D. 72.3 Using results from the table() function, are there more 4-cylinder, 6-cylinder, or 8-cylinder vehicles (cyl attribute) in this data set? A. 4 B. 6 C. 8 D. There is the same number of 4- and 8-cylinder vehicles in the data set. Using results from the table () function, which is the least common engine size as measured by the number of cylinders (cyl attribute)? A. 4 B. 6 C. 8 D. 4- and 6-cylinder engines appear the same number of times in the data set. Using results from the str() function, what is the data type of the drat attribute? A. str B. num C. chr D. dec Using results from the hist() function, which horsepower (hp) range has the largest number of vehicles? A. 50–100 B. 100–150 C. 150–200 D. 200–250 Using results from the hist() function, are there any vehicles with more than 250 horsepower? A. No. B. Yes, there is one. C. Yes, there are four. D. Yes, there are two.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

You will need the R and RStudio software installed to complete this assignment. Please follow the instructions in section 1.2 of the reading to complete the installation. Complete the following requirements: The R software includes several built-in data sets. This assignment will use the Motor Trend Cars data set named mtcars. Import this data set into a new data frame called CarData, using this command: CarData <- mtcars Run the following commands, and use the results to answer the questions below: summary(CarData) sd(CarData$hp) table(CarData$cyl) str(CarData) hist(CarData$hp) Points: 60 Started on Aug 18 at 14:57Your Submission: Using results from the summary() function, what is the median value for the qsec attribute? A.14.50 B. 19.28 C. 17.71 D. 17.85 Using results from the summary() function, what is the horsepower (hp) of the most powerful vehicle in the data set? A. 146.7 B. 467.3 C. 335.0 D. 472.0 Using results from the summary() function, what is the average weight of the vehicles in the data set? A. 3.217 B. 3.325 C. 3.610 D. 3.117 Using results from the summary() function, what is the lowest fuel economy as measured in miles per gallon (mpg)? A. 10.40 B. 4.0 C. 71.10 D. 19.21 Based on the results of the standard deviation function (sd()), about how much do the horsepower (hp) values vary from the average of 146.7? A. 76.8 B. 68.6 C. 63.8 D. 72.3 Using results from the table() function, are there more 4-cylinder, 6-cylinder, or 8-cylinder vehicles (cyl attribute) in this data set? A. 4 B. 6 C. 8 D. There is the same number of 4- and 8-cylinder vehicles in the data set. Using results from the table () function, which is the least common engine size as measured by the number of cylinders (cyl attribute)? A. 4 B. 6 C. 8 D. 4- and 6-cylinder engines appear the same number of times in the data set. Using results from the str() function, what is the data type of the drat attribute? A. str B. num C. chr D. dec Using results from the hist() function, which horsepower (hp) range has the largest number of vehicles? A. 50–100 B. 100–150 C. 150–200 D. 200–250 Using results from the hist() function, are there any vehicles with more than 250 horsepower? A. No. B. Yes, there is one. C. Yes, there are four. D. Yes, there are two.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 8 images

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education