diff.time.table: Difference time.table

Description Usage Arguments

View source: R/time.table.R

Description

Difference (diff) each time series in a time.table, taking missing missing values into account (i.e. each difference it taken at exactly one time step, with a value of NA if the next observation is not present). Optionally diff preserves the exact index/time combinations present in the original time.table (in which case some information is lost).

Usage

1
2
3
## S3 method for class 'time.table'
diff(tt, forward = TRUE, preserve.frequency = TRUE,
  ...)

Arguments

tt

time.table to difference

forward

compute forward differences (default).

preserve.frequency

preserve the range of (indeed, exact) values present in tt

...

unused

Note that for now only forward==TRUE and preserve.frequency==TRUE are implemented.


rossklin/timetablr documentation built on May 27, 2019, 11:40 p.m.