search for: diff_onlin

Displaying 1 result from an estimated 1 matches for "diff_onlin".

Did you mean: diff_online
2011 Nov 23
1
Density over time intervals
...n over the day, i.d. for each minute of a day I want the probability that the user is online. I have come up with some helper functions that let me find the minute of the day and the duration of the online session: data <- read.table("availability.csv", header=T, sep=",") diff_online <- function(username) { user_on <- strptime(data$online_time[which(data$username==username)], format="%Y-%m-%d %H:%M:%S"); user_off <- strptime(data$offline_time[which(data$username==username)], format="%Y-%m-%d %H:%M:%S"); difftime(user_off, user_on, units=&...