inferTi: Create a Time Index to Match a Vector of DateTimes

Description Usage Arguments Value Note See Also Examples

View source: R/inferTi.R

Description

Attempts to find a tif (Time Index Frequency) that "fits" the supplied dateTimes, and returns a ti object that hits the same dates and/or times.

Usage

1
inferTi(dateTimes)

Arguments

dateTimes

a vector POSIXct object, or something that as.POSIXct can coerce into one.

Value

a ti object as long as the input

Note

May fail if there is no tif that closely matches the inputs.

See Also

as.ti

Examples

1
  inferTi(Sys.time() + (1:5)*86400)

tis documentation built on May 19, 2017, 6:38 p.m.

Search within the tis package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.