Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. # Difference of the current time and previous time in a list
  2. diffLast <- function(l) {
  3. x = c(NA, difftime(c(l[-1], NA), l, units = "mins"))
  4. x[1:length(x)-1]
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement