Learn R Programming

timeSeries (version 4041.111)

str-methods: Display the structure of 'timeSeries' objects

Description

Compactly display the structure of a "timeSeries" object.

Usage

# S3 method for timeSeries
str(object, ...)

Value

NULL, invisibly. The function is called for its side effect of printing a compact representation of the structure of the

"timeSeries" object.

Arguments

object

an object of class timeSeries.

...

arguments passed to other methods.

Examples

Run this code
## Load Microsoft Data Set
data(MSFT)
X <- MSFT[1:12, 1:4]
colnames(X) <- abbreviate(colnames(X), 4)
    
## Display Structure
str(X)

Run the code above in your browser using DataLab