[R] Converting a number of minutes to a difftime

From: Martin C. Martin <martin_at_metahuman.org>
Date: Fri 13 May 2005 - 06:40:34 EST


I have a variable "m" that contains the number of minutes that something lasted, e.g.

m <- 139

I'd like to convert it to a difftime, so I can add it to the POSIXct start time. But as.difftime seems to want a character string, with at most two characters for the minutes. All other conversion functions seem to take strings as well. What am I missing?


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 13 06:45:07 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:45 EST