its (version 0.1.1)

its-arith: Arithmetic Methods for Irregular Time-Series Objects

Description

Arithmetic methods for objects of class "its".

Usage

x + y
     x - y
     x * y
     x / y
     x ^ y
     x     x

Arguments

x,y
an object of class "its"

Value

  • The returned object is an object of class "its", conformable with the inputs, and with identical time-stamps.

Details

They return numeric vectors containing the result of the element by element operations. The arguments must be conformable (same dimensions) and their time-stamps must match for each row.

See Also

ts, POSIXct, its-file, its-lags its-join its-times its-subset its-fin its-disp its-info its-cumdif

Examples

Run this code
a <- matrix(c(seq(by=24*60*60,length=20),1:20,41:60),nrow=20,ncol=3)
b <- as.its(a)
b+b-2*b
b/b

Run the code above in your browser using DataLab