Skip to content
Prev 176943 / 398503 Next

Convert string to time

On 12 April 2009 at 21:00, Peter Kraglund Jacobsen wrote:
You could make a simple little function that does the following

timeconv <- function(time){
    newtime <- floor(time)*60 + (time-floor(time))*100
    return(newtime)
}
[1] 80
[1] 100
[1] 90

Phil

| ______________________________________________
| R-help at r-project.org mailing list
| https://stat.ethz.ch/mailman/listinfo/r-help
| PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
| and provide commented, minimal, self-contained, reproducible code.