Do you expect to get the day + the numerical part of the day as an output? If so, something like this will work:
test <- strptime(x1,"%m/%d/%Y %H:%M") (test$yday+1) + (test$hour/24) + (test$min/(24*60))
Although this is consistent with what you are asking, I think deleting +1 might make sense:
(test$yday) + (test$hour/24) + (test$min/(24*60))
Although my spidey feelings are tingling that Dirk is going to show and show me how to do this with the POSIXct date / time POSIXct .
Here is an attempt at such an answer using basic functions:
mapply(julian, as.POSIXct(test), paste(format(test,"%Y"),"01","01",sep="-"))
source share