Paul Sorenson Paul.Sorenson at vision-bio.com writes:
:
: I have a frame which contains 3 columns:
:
: date defectnum state
:
: And I want to get the most recent state change for a given defect number.
date is POSIXct.
:
: I have tried:
: aggregate(ev$date, by=list(ev$defectnum), max)
This seems to work
toPOSIX - function(x){
y - x - as.numeric(ISOdate(2005,1,1))
z - ISOdate(2005,1,1) + y
return(z)
}
test - as.numeric(ISOdate(2005,3,1) )
toPOSIX(test)
But whether one should be doing this I don't know. There are certainly
functions that play aorund with the POSIX