Vie wdataset summary By using the start we can check first date in sheet and similery using END check last date in sheet By using the frequency check intevals in data. It is basically used for sampaling.
data("AirPassengers")
start(AirPassengers)
## [1] 1949 1
end(AirPassengers)
## [1] 1960 12
frequency(AirPassengers)
## [1] 12
summary(AirPassengers)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 104.0 180.0 265.5 280.3 360.5 622.0
Plot scatter plot of dataset Create a linear regression model with single variable.
Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.