Skip to content
Back to formatted view

Raw Message

Message-ID: <4283BF42.7060909@metahuman.org>
Date: 2005-05-12T20:40:34Z
From: Martin C. Martin
Subject: Converting a number of minutes to a difftime

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