Before creating proper time series objects, we may want to do some preliminary analyses. This recipe shows you how.
base R package provides all the necessary functionality. If you have not already downloaded the data files for this chapter, please do it now and ensure that they are located in your R working directory.
> wm <- read.csv("walmart.csv")
> plot(wm$Adj.Close, type = "l")
The data can be viewed as a line chart as follows:
> d <- diff(wm$Adj.Close) ...