Assignments
Assignments
R-Programming
#in this practice i will used inbuilt datsets in r programming i used for the
referececes
#mtcars data set which over the more specific and more generic with good
valuation.
#loading the datssets
cat("1:-dataset 1 ...mtcars datasets")
data("mtcars")
head(mtcars,6)
?mtcars
data("mtcars")
head(mtcars)
nrow(mtcars)
ncol(mtcars)
#basic summary of the dataset.
data(mtcars)
head(mtcars)
summary(mtcars)
#visualization of the dataset
plot(mtcars$wt, mtcars$mdg, xlab="Weight (1000 lbs)", ylab="Miles per
gallon")
corr<-cor(mtcars[,1:11])
corrplot::corrplot(corr,method="color",type="upper")
Output:
#===============================================================
================
#===============================================================
========================
Output:-
#===============================================================
================
#for the longley dataset where we predict the best longest's economic
regression
# to finding their represent in the r programming language.
cat("4:- dataset 4 ...longley datasets")
data("longley")
data(longley)
?longley
#===============================================================
================
#in this collection of the dataset we saw that islands data is the sepcific area of
the
#seas.
Output:-