diff.time: Returns time difference between two timestamps

Description Usage Arguments Value Examples

Description

Calculates t2 - t1 difference

Usage

1
2
## S3 method for class 'time'
diff(t1, t2)

Arguments

t1

GPS locations data frame

t2

initial point (longitude,latitude) dataframe

Value

time difference between t2 and t1 in minutes

Examples

1
2
3
4
library(lubridate)
t1 <- parse_date_time("1/1/1990 10:15:25", "mdy HMS", tz = "GMT-3")
t2 <- parse_date_time("1/1/1990 10:55:09", "mdy HMS", tz = "GMT-3")
diff.time(t1,t2)

analytics-ufcg/busminer documentation built on May 12, 2019, 2:40 a.m.