Question: In R Studio - Use Library () to see the packages that are installed. Install R Forecast Package and ggplot2 Package by going to Tools
- In R Studio - Use Library () to see the packages that are installed.
- Install R Forecast Package and ggplot2 Package by going to Tools and install from CRAN Repository
Show that Forecast Package and ggplot2 package is installed by using Library()
- Load Forecast Package by running library(Forecast)
- Explore the Iris Dataset in R
Library(datasets)
data(iris) - Importing the Iris dataset
str(iris) - Structure of the dataset will be displayed
head(iris) - Top few rows of the dataset
- mean(iris$Sepal.Length) - Mean value of Sepal Length
median(iris$Sepal.Length) -Median value
range(iris$Sepal.Length) - Range
var(iris$Sepal.Length) - Variance
sd(iris$Sepal.Length) - Standard deviation
- summary(iris$Sepal.Length)
- summary(iris) - to know the spread of data
- boxplot(iris$Sepal.Length)
- boxplot (iris$Sepal.Length, horizontal = TRUE)
- boxplot.stats (iris$Sepal.Length)
- boxplot(iris[1:4]) 4 Box plots of each column from 1 to 4
- hist(iris$Sepal.Length)
- hist(iris$Sepal.Length, main=Histogram of Sepal Length, xlab = Sepal length)
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
