Skip to content
Prev 314440 / 398503 Next

Question on creating Date variable

On Dec 31, 2012, at 9:40 PM, Christofer Bogaso wrote:

            
That was my code. If you will need to apply numeric operators then you  
should be storing the POSIXct value as an intermediate:

dt_time <- as.POSIXct(as.character(x), format="%H.%M")

out_time <- format( dt_time,
            format="%I.%M %p")
dt_time[3] - dt_time[2]