This functions uses WriteXLS
to write time series data to an .xls spreadsheet
file. If the object x
has mulitple series then they will be put on
the same sheet. Additional objects in ... will be put on additional pages.
The first line of each sheet will have column headers using seriesNames
from the series in the column. The first column will have dates and the
heading for that column will be determined by dateHeader
. This can be a
vector of length equal the number of sheets, of a single character string, in
which case it is replicated for each sheet. The dateHeader
is a
might be useful for indication information like the date of the last
observation in a known place on the sheet (A1) for indicating on a graph.
For convenience, the year, period, and a character
representation of the period are indicated in columns 2 to 4. This is followed
by columns of the data.
If SheetNames
is NULL
(the default) then the sheet names will
be generated from the first series name in each object. If SheetNames
is supplied then it should have an element for x
and for each object
in ....
If WriteXLS
does not find a version of perl with appropriate modules
then a work around is attempted using save
.
WriteCSV
handles only a single object x
which can have mulitple
series. These are wtten as columns in the comma separated value file.
dateFormat
can be 0 indicating no date, 1 indicating a format like
"Jan 1969", 2 indicating a format like 1969,1, or 3 indicating a
format like 1969,"Jan",. Only 0 or 1 are supported for data other than monthly
and quarterly frequencies.