Skip to content
Prev 173280 / 398506 Next

Question about datatypes/plotting issue

There are two header lines which is confusing it.  Use pattern= to
start at the second one.
See the three vignettes in zoo for info on the rest.

library(gdata)
W <- read.xls("http://www2.standardandpoors.com/spf/pdf/index/CSHomePrice_History_022445.xls",
pattern = "LXXR")

library(zoo)
w <- zooreg(as.matrix(W[-1]), start = as.yearmon("1987-01"), freq = 12)
plot(w[,1:2], col = 1:2, screen = 1, ylab = "")
On Tue, Mar 10, 2009 at 9:15 PM, Oscar Bonilla <obonilla at galileo.edu> wrote: