Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

print.tis

Printing Time Indexed Series


Description

Print method for time indexed series.

Usage

## S3 method for class 'tis'
print(x, format = "%Y%m%d", matrix.format = FALSE, class = TRUE, ...)

Arguments

x

a time indexed series

format

a character string describing how to format the observation times if either x is printed in matrix form. Format strings are detailed in format.ti.

matrix.format

TRUE or FALSE. See details.

class

if(TRUE (the default), prints class: tis at the end.

...

additional arguments that may be passed along to print.ts. See details.

Details

If matrix.format is F (the default) and x is a univariate monthly, quarterly or annual series, printing is accomplished by print(as.ts(x), ...). Otherwise, x is printed as a matrix with rownames created by formatting the time indexes of the observations according to the format string.

See Also

Examples

print(tis(1:31, start = today() - 30), format = "%b %d, %Y")

tis

Time Indexes and Time Indexed Series

v1.38
Unlimited
Authors
Jeff Hallman <jeffhallman@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.