knitr::opts_chunk$set( fig.align = "center", fig.pos = "!htbp" ) lattice::lattice.options(default.theme = list( fontsize = list(text = 10, points = 8) )) options(digits = 2) # Source some scripts source(file.path("R", "lattice_wrappers.R"))
This book contains solutions to the problems in the book Time Series Analysis: with Applications in R, second edition, by Cryer and Chan. It is provided as a github repository so that anybody may contribute to its development.
You will need these packages to reproduce the examples in this book:
install.packages(c( "latticeExtra", "lattice", "TSA", "pander", "gridExtra", "devtools", "zoo", "xts" )) devtools::install_github("jolars/latticework")
# Load the packages library(devtools) library(lattice) library(latticeExtra) library(gridExtra) library(TSA) library(pander) library(zoo) library(xts) library(latticework)
In order for some of the content in this book to be reproducible, the random seed is set at 1234.
set.seed(1234)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.