Print Method for Irregular Time Series

DESCRIPTION:

Prints an irregular time series and gives its range of corresponding time values. This method is automatically called by print when given a time series of class its.

USAGE:

print.its(x, show.times = T, quote = F, ...) 

REQUIRED ARGUMENTS:

x
a univariate or multivariate irregular time series

OPTIONAL ARGUMENTS:

show.times
logical flag: if TRUE, all times series are printed as a matrix with times as row labels. Printed output can be shortened for univariate time series by setting show,times to FALSE. The default is TRUE.
quote
logical flag: if TRUE, character strings are surrounded by quotes. The default is FALSE.

VALUE:

x with the invisible flag set to prevent reprinting

SIDE EFFECTS:

formats and prints x as an irregular time series.

SEE ALSO:

, , , .

EXAMPLES:

yield.low <- rts(corn.yield, start=1980, 
             units="years")[corn.yield < mean(corn.yield)] 
yield.low 
# produces the following output: 
#       yield.low 
#  1980      24.5 
#  1982      27.9 
#  1983      27.5 
#  1984      21.7 
#  1985      31.9 
#  1987      29.9 
#  1988      30.2 
#  1991      19.4 
#  1993      30.2 
#  1997      31.5 
#  1998      30.5 
#  2001      30.1 
#  2003      26.8 
#  2004      30.5 
#  2006      29.7 
#  2008      29.9 
#  2014      26.8 
#  2016      31.7 
#   start      end 
#   1980  ... 2016 
print.its(yield.low, show = F) 
# produces the following output: 
# [1] 24.5 27.9 27.5 21.7 31.9 29.9 30.2 19.4 30.2 31.5 
#[11] 30.5 30.1 26.8 30.5 29.7 29.9 26.8 31.7 
# start      end 
# 1980  ... 2016 
# Time units : years