Cut replacementthat Returns POSUIXct type to avoid the lack of round-trip support
in POSIXt types between Cut, as character and as.POSIXXct
Usage
posixctCut(timeVector, interval)
Value
Returns a vector of POSIXct types, cut to the intervals specified.
Arguments
timeVector
vector of POSIXt type
interval
a character string consisting of zero or one digits (a count), an optional
space, a word identifying the units to be grouped:sec, secs, min, mins, hour, hours, day, days, week, weeks.
For example: "1 hour", "3 weeks" or "17 seconds".