[R] Converting a number of minutes to a difftime

Martin C. Martin martin at metahuman.org
Thu May 12 22:40:34 CEST 2005


Hi,

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?

Thanks,
Martin




More information about the R-help mailing list