Re: [R] Time in minutes

2010-03-15 Thread Miguel Porto
Hi! That should do it: yourtime$min+yourtime$hour*60 In case your object is of class POSIXlt. Otherwise, convert it with as.POSIXlt first. Miguel On Mon, Mar 15, 2010 at 3:57 PM, Carlos Nader wrote: > Hi there! > > I have some data in POSIXlt format: > > 2009-07-18 5:53:00 > 2008-11-23 7:27:0

[R] Time in minutes

2010-03-15 Thread Carlos Nader
Hi there! I have some data in POSIXlt format: 2009-07-18 5:53:00 2008-11-23 7:27:00 2008-11-24 5:25:00 and would like to extract information about only the minutes of the day, like: 5:53 --> 353 minutes 7:27 --> 447 minutes can you help me? Carlos Nader [[alternative HTML version del