tis (version 1.37.1)

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

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

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

See Also

as.ti

Examples

Run this code
# NOT RUN {
  inferTi(Sys.time() + (1:5)*86400)
# }

Run the code above in your browser using DataLab