search for: addtime2

Displaying 2 results from an estimated 2 matches for "addtime2".

2010 Mar 18
2
Dataframe manipulation
...sequentially, and the starting site for a survey day was chosen randomly. The route is circular, proceeding from site 101 to 104. I really hope someone can help me with this, because I am so close to finishing it. BTW, the code that adds minutes to 24 hr time to create 24 hr time is as follows: addTime2<-function(timeTxt,mins){ orig.date<-as.POSIXct(paste("2001-01-01",timeTxt)) new.Date<-orig.date+mins*60 new.Date<-strsplit(as.character(new.Date)," ") new.Time<-(sapply(new.Date,"[",2)) return(new.Time) } SCHEDULE2$DEPART<-addTime2(SCHEDULE2$ARRIVE,SC...
2010 Mar 17
3
Adding minutes to 24 hour time
Hi, Does anyone know how to add minutes (up to 100 min) to a 24 hour time, to create a new 24 hour time? I can't seem to find any documentation or examples explaining how to do this. The variables of interest are 'ARRIVE','WAIT', and 'DEPART' in the attached partial dataframe. I want 'DEPART' to be the "sum" of 'ARRIVE' and 'WAIT' in