In this recipe, we look at various features to create and plot time-series objects. We will consider data with single and multiple time series.
If you have not already downloaded the data files for this chapter, do it now and ensure that the files are in your R working directory.
> s <- read.csv("ts-example.csv")
> s.ts <- ts(s) > class(s.ts)  "ts"
> s.ts.a ...