Learn R Programming

timeSeries (version 3010.97)

dimnames: Time Series Columns and Rows

Description

Functions and methods handling columns and rows of 'timeSeries' objects. ll{ dim Returns the dimension of a 'timeSeries' object, dimnames Returns the dimension names of a 'timeSeries' object, colnames<- Assigns column names to a 'timeSeries' object, rownames<- Assigns row names to a 'timeSeries' object, }

Arguments

value
a valid value for names component of dimnames(x).
x
an object of class timeSeries.

Value

  • NA

Examples

Run this code
## Load Swiss Pension Fund Benchmark Data -
   data(LPP2005REC)
   X = LPP2005REC[1:10, 1:3]
   
## Get Dimension - 
   dim(X)
   
## Get Column and Row Names -
   dimnames(X)
   
## Get Column Names -
   colnames(X)
   
## Get Row Names -
   rownames(X)

Run the code above in your browser using DataLab