Question: Checking the dimensions of your data We are going to start out using the mtcars data set, which contains measures of design, performance and consumption
Checking the dimensions of your data
We are going to start out using the mtcars data set, which contains measures of design, performance and consumption for different cars. If we want to know how many cases and variables there are in the data set we could count them manually, but this could take a very long time. A faster way is to use the function dim The first value returned by dim is the number of cases rows and the second value is the number of variables columns
The variables in mtcars are as follows:
mpg MilesUS gallon.
cyl Number of cylinders.
disp Displacement cuin
hp Gross horsepower
drat Rear axle ratio
wt Weight lb
qsec mile time
vs VS
am Transmission automatic, manual
gear Number of forward gears
carb Number of carburetors
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
