Learn R Programming

its (version 1.0.3)

itsAccessor: Accessor, Assignment Functions for Irregular Time-Series Objects

Description

Accessor & assignment functions for objects of class "its".

Usage

dates(x)
names(x)
core(x)
dates(x) <- 
names(x) <-
core(x) <-

Arguments

x
an object of class "its"

Value

  • For dates a vector of class "POSIXct". For names a vector of mode "character". For core a matrix of mode"numeric". For dates<-, names<-, and core<- an object of class "its".

Details

dates an accessor function, to access the time-stamps of the object. names an accessor function, to access the (column) names of the object. core an accessor function, to access the numeric data of the object. dates an assignment function to assign the time-stamps of the object. names an assignment function to assign the (column) names of the object. core an assignment function to assign the numeric data of the object.

See Also

ts, POSIXct, itsFile, itsLags, itsJoin, itsTimes, itsSubset, itsFin, itsDisp, itsInfo, itsCumdif, itsArith itsInterp

Examples

Run this code
x <- newIts(1:10)
dates(x)
names(x)
core(x)
dates(x) <- seq.POSIXt(from=Sys.time()+11*24*60*60,
            to=Sys.time()+20*24*60*60,
            by="DSTday")
names(x) <- "B"
core(x) <- as.matrix(11:20)

Run the code above in your browser using DataLab