timeDifference: Time Difference

Description Usage Arguments Value Examples

View source: R/timeDifference.R

Description

This function takes as in put a numeric time value (t0) and a vector of numeric time values (times), and computes the difference in times relative to t0.

Usage

1
timeDifference(t0, times)

Arguments

t0

numeric scalar indicating the reference time point

times

numeric vector of time points to be converted to time differences (in relation to t0)

Value

a numeric vector of equal length to times, containing the computed time differences.

Examples

1
dt(127, c(0,30,45,87,111, NA, 135, 155))

jchen032294/expSmooth documentation built on May 17, 2019, 1:29 p.m.