If you are working on a local copy of RStudio, you may want to install mosaic
and DCF
there so you can follow along. Here's how.
install.packages("mosaic")
require(mosaic)
install.packages("devtools")
require(devtools)
install_url("http://mosaic-web.org/go/Repository/DannyKaplan/DCF_0.13.tar.gz")
require(DCF)