Learn R Programming

timeSeries (version 4041.111)

t: Transpose 'timeSeries' objects

Description

Returns the transpose of a "timeSeries" object.

Usage

# S4 method for timeSeries
t(x)

Value

a matrix

Arguments

x

a 'timeSeries' object.

Examples

Run this code
## Dummy 'timeSeries' with NAs entries
   data <- matrix(1:24, ncol = 2)
   s <- timeSeries(data, timeCalendar())
   s
   
## Transpose 'timeSeries' -
   t(s)

Run the code above in your browser using DataLab