Print a Time Series

DESCRIPTION:
Specially formats and prints a time series. This is automatically called by print when given a time series.

USAGE:
print.ts(x, quote=T)

REQUIRED ARGUMENTS:
x:
a univariate or multivariate time series, i.e., tsp(x) is not NULL.

OPTIONAL ARGUMENTS:
quote:
logical flag: if TRUE, character strings are surrounded by quotes.

VALUE:
x, with the invisible flag set to prevent reprinting.

SIDE EFFECTS:
formats and prints x as a time series.

DETAILS:
The time series parameters, tsp(x), are used to ensure that each line either contains a full cycle or that a full cycle occupies an integral number of lines. Month abbreviations are used for column labels if frequency(x) is 12, and quarter abbreviations are used if frequency(x) is 4. Otherwise the observation number within the current cycle is used.

After each page of output, the column labels are printed again, so that there should always be a copy of the column labels on the screen at any time. To avoid multiple copies of the column labels, execute options(length=10000) to specify a very long page. A new format may be chosen at the end of each page.

Each column of a multivariate series is printed in turn. This is in contrast to the default printing of multivariate time series which prints the series as a matrix and then prints the tsp attribute.


SEE ALSO:
print , options .

EXAMPLES:
options(width=60)
hstart
        Jan   Feb   Mar   Apr   May   Jun   Jul   Aug
1966:  81.9  79.0 122.4 143.0 133.9 123.5 100.0 103.7
1967:  61.7  63.2  92.9 115.9 134.2 131.6 126.1 130.2
1968:  82.7  87.2 128.6 164.9 144.5 142.5 142.3 141.0
amp;...
        Sep   Oct   Nov   Dec
1966:  91.9  79.1  75.1  62.3
1967: 125.8 137.0 120.2  83.1
1968: 139.5 143.3 129.5  99.3
amp;...