search for: user_off

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

Did you mean: str_off
2011 Nov 23
1
Density over time intervals
...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="mins"); } min.of.day <- function(dtstr) # minute of day { dt <- strptime(dtstr, format="%Y-%m-%d %H:%M:%S"); h <- a...