Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Difference of the current time and previous time in a list
- diffLast <- function(l) {
- x = c(NA, difftime(c(l[-1], NA), l, units = "mins"))
- x[1:length(x)-1]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement