Created
October 17, 2020 12:33
-
-
Save ifknot/b1775dad84d621a0c1ea9cd7cef243a6 to your computer and use it in GitHub Desktop.
R code to load and show first 6 entries of the mpg.csv data set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import the data and look at the first six rows | |
car_data <- read.csv(file = 'data/mpg.csv') | |
head(car_data) | |
manufacturer model hwy displ year cyl drv cty trans fl class | |
(str) (str) (int) (num) (date) (int) (str) (int) (str) (str) (str) | |
1 audi a4 29 1.8 1999 4 f 18 auto(l5) p compact | |
2 audi a4 29 1.8 1999 4 f 21 manual(m5) p compact | |
3 audi a4 31 2 2008 4 f 20 manual(m6) p compact | |
4 audi a4 30 2 2008 4 f 21 auto(av) p compact | |
5 audi a4 26 2.8 1999 6 f 16 auto(l5) p compact | |
6 audi a4 26 2.8 1999 6 f 18 manual(m5) p compact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment