Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A dataframe in R is a 2-dimensional, rectangular data structure used to store values of any data type. It's a data structure of the base
A dataframe in R is a 2-dimensional, rectangular data structure used to store values of any data type. It's a data structure of the base R, meaning that we don't have to install any specific package to create dataframes and work with it. In this exercise, you will create dataframes and perform some initial data analysis. You will explore the mtcars dataset (which is already included in R). Then copy the mtcars dataset into a new variable (called it myCars), so that if you mess up, you can start again (by copying mtcars into myCars again). An interactive tutorial on basic to advanced R features is also available within R itself. It is called Statistics With Interactive R Learning (SWIRL). More information about installing and using this feature can be found at http://swirlstats.com/students.html Review the Readings/Resources in the unit. Complete the following steps: Which car has the best hp (hp stands for "horse power") Is higher or lower hp best? Which car has the best hp? Explore mpg (mpg stands for "miles per gallon") What is the highest mpg? Which car has the highest mpg? Create a sorted dataframe, based on mpg. Which car has the "best" combination of mpg
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