EventIndDuration | R Documentation |
Low level function that calculates the Duration of Event
EventIndDuration(Timevector,BeginInd,EndInd,Resolution='mins',Silent=FALSE)
Timevector |
[1:n] POSIXlt vecttor of time |
BeginInd |
[1:m] Beginning Indices |
EndInd |
[1:m] Ending Indices |
Resolution |
Resolution of difference like 'mins','hours','days' |
Silent |
default (TRUE), if FALSE, error warnings amd stops disabled |
Timevector uses POSIXlt, which stores a list of day, month, year, hour, minute, second, etc. EventIndDuration() assumes for Timevector, that all list-values within are in the same time zone.
diff[1:m] Duration of Event
POSIXct stores seconds since UNIX epoch (+some other data), the conversion to POSIXlt can be done by this function only if UTC time zone is assumed.
Michael Thrun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.