Displaying 1 result from an estimated 1 matches for "new_time_var2".
Did you mean:
new_time_var
2008 Oct 13
2
Timestamps and manipulations
...ime a user sees something Vs the last.. and engagment time
essentially,
i see there is the difftime function, is there a more elegant way of
working this out then my thoughts (Pysdo code below)
sort data by user_id and Timestamp
take the head of user_id as new_time_var
take the tail of user_id as new_time_var2
use difftime(new_time_var, new_time_var2, units="secs")
Mike
[[alternative HTML version deleted]]