read.zoo is a convenience function which should make it easier
to read data from a text file and turn it into a "zoo" series
immediately. read.zoo reads the data file via read.table(file, ...).
The first column of the resulting data is interpreted to be the index, the
remaining columns the corresponding data. To assign the appropriate class
to the index, FUN can be specified and is applied to the first column.
By default, read.zoo uses as.Date(as.character(x), format = format) if format is
specified and as.POSIXct(as.character(x), tz = tz) if tz
is specified; otherwise it tries to guess between "numeric",
"Date" and "POSIXct".
If the resulting series has an underlying regularity, it is coerced to
a "zooreg" series.
## not run## turn (numeric) first column into yearmon indexz <- read.zoo("foo.csv", sep = ",", FUN = as.yearmon)
## turn (character) first column into Date indexz <- read.zoo("foo.tab", format = "