itsAccessor {its}R Documentation

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) <- value
names(x) <- value
core(x) <- value

Arguments

x an object of class "its"
... further arguments passed to or from other methods
value value to be assigned into dates, names, or core

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.

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".

Author(s)

Giles Heywood

See Also

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

Examples

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

[Package its version 1.1.1 Index]