dimnames

0th

Percentile

Time Series Columns and Rows

Handling columns and rows of 'timeSeries' objects.

Keywords
chron
Details

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

Value

Returns the dimensions and related numbers of a 'timeSeries' object.

Aliases
  • dim,timeSeries-method
  • dim<-,timeSeries-method
  • dimnames,timeSeries-method
  • dimnames<-,timeSeries,list-method
  • colnames<-,timeSeries-method
  • colnames,timeSeries-method
  • rownames,timeSeries-method
  • rownames<-,timeSeries,timeDate-method
  • rownames<-,timeSeries,ANY-method
  • names,timeSeries-method
  • names<-,timeSeries-method
Examples
library(timeSeries) ## Load Swiss Pension Fund Benchmark Data - X <- LPP2005REC[1:10, 1:3] ## Get Dimension - dim(X) ## Get Column and Row Names - dimnames(X) ## Get Column / Row Names - colnames(X) rownames(X) ## Try your own DIM - DIM <- function(x) {c(NROW(x), NCOL(x))} DIM(X) DIM(X[, 1]) ## Try length / LENGTH - length(X) length(X[, 1]) LENGTH <- function(X) NROW(X) LENGTH(X) ## Columns / Rows - ncol(X); NCOL(X) nrow(X); NROW(X) ## See also - isUnivariate(X) isMultivariate(X)
Documentation reproduced from package timeSeries, version 3022.101.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.