Learn R Programming

tis (version 1.39)

print.tis: Printing Time Indexed Series

Description

Print method for time indexed series.

Usage

# S3 method for 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

Run this code
# NOT RUN {
print(tis(1:31, start = today() - 30), format = "%b %d, %Y")
# }

Run the code above in your browser using DataLab