Displaying 1 result from an estimated 1 matches for "buzwah005".
2008 Aug 14
1
time difference bug?
...ersion of R 2.7.1
And I am getting a strange result ( see below )
I need the difference in minutes.
Actually looking for where it is NOT 15 minutes.
Would anyone know why this could be happening?
Or should I do this another way?
Bill
The script "k0.R"
===============
a=read.table("buzwah005.txt")
d=strptime(paste(a[,1]," ",a[,2]),"%m/%d/%Y %H:%M")
tm=-24*60*as.numeric(as.POSIXlt("2007-1-1")-d) # time since midnight Jan 1
print(tm[2]-tm[1])
x=a[,3]
diffs=round(tm[-1]-tm[-length(tm)])
not15=(1:length(diffs))[diffs!=15]
print(not15)
===============
The...