search for: myfileinfo

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

Did you mean: fileinfo
2006 Nov 17
0
difftime for handling time units--hours, minutes, days--from file times
Thanks, Tim To get the time difference in the proper units, it's as simple as this: difftime(myfileinfo$mtime[2], myfileinfo$mtime[1], units="hours") Cheers, Warren On 11/13/06, Tim Calkins <tcalkins@gmail.com> wrote: > hardly the most efficient way to go, but consider using a substring > function to extract the time bits from your data, then reading them as POSIX > dates...
2006 Nov 13
1
handling time units--hours, minutes, days--from file times
...lar intervals. I tried using the zoo package, and had similar problems with the conversion of time units. Code and sample data is below-- for your info--after this, I am feeding the times and measurements to nls. Thanks in advance, -- Warren #Here is the failed code: myfilenames<-row.names(myfileinfo) fileno<-length(myfilenames) filetimes<-numeric() for (i in 2:fileno){rel.read.time<-myfileinfo$mtime[i]-myfileinfo$mtime[1] rel.read.time<-(as.numeric(rel.read.time)) ##this next part is problematic ##i would love to say > time.in.hours<-as.hours (myfileinfo$mtime[i]-my...