Data Import and Explanation
data1 <- read.csv(file.choose(), header=T, sep=",")
)
Data Understanding
The Head function displays the first few rows of the dataset
head(data1)
The dim function displays the dimensions of the dataset
dim(data1)
The str function displays the data structure of the dataset
str(data1)
Data Visualization
Scatterplot
plot(hp, mpg)
In this scatterplot, we can see a strong negative correlation
between mpg and hp. As Horsepower increases, a vehicle gets less miles
per gallon.