Re: [R] access to right time unit when checking for time execution

2011-01-15 Thread David Winsemius
On Jan 15, 2011, at 6:57 AM, Christine SINOQUET wrote: Hello, I really wonder how to distinguish between secs and mins in the example below. In other terms, how can I access the time unit in variable d ? start1 <- Sys.time(); stop1 <- Sys.time(); d <- stop1-start1; > str(d) Class 'difft

Re: [R] access to right time unit when checking for time execution

2011-01-15 Thread Uwe Ligges
On 15.01.2011 12:57, Christine SINOQUET wrote: Hello, I really wonder how to distinguish between secs and mins in the example below. In other terms, how can I access the time unit in variable d ? start1 <- Sys.time(); stop1 <- Sys.time(); d <- stop1-start1; print(d); v<-unlist(strsplit(as.ch

[R] access to right time unit when checking for time execution

2011-01-15 Thread Christine SINOQUET
Hello, I really wonder how to distinguish between secs and mins in the example below. In other terms, how can I access the time unit in variable d ? start1 <- Sys.time(); stop1 <- Sys.time(); d <- stop1-start1; print(d); v<-unlist(strsplit(as.character(d), split=" ")); print(v) Time differe