print.tis: Printing Time Indexed Series

Description Usage Arguments Details See Also Examples

View source: R/tis.R

Description

Print method for time indexed series.

Usage

1
2
## 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

format.ti, print.ts

Examples

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

tis documentation built on Sept. 29, 2021, 1:06 a.m.