Military Time Comparison
On Feb 26, 2012, at 10:31 PM, Edgar Alminar wrote:
Hello All, I have this dataset: RID VISCODE SCRNO RECNO AEWHEN AEONDATE AEONTIME INFPOINT.x INFDATE.x INFTIME.x INFPOINT.y INFDATE.y INFTIME.y 1 100 w00 IGI1480069 4 2 09/15/2009 1118 1 09/15/2009 947 14 -4 1117 2 100 w00 IGI1480069 8 2 09/15/2009 1132 1 09/15/2009 947 14 -4 1117 3 100 w00 IGI1480069 5 2 09/15/2009 1125 1 09/15/2009 947 14 -4 1117 I have AEONTIME, INFTIME.x, and INFTIME.y, and they are all military times. I'm trying to do a comparison like this: match2 = subset(match2, AEONTIME < INFTIME.x) But it's not working correctly.
Define what you expected. In the sample you offered none of those logical comparisons would be true so you should get a dataframe with zero rows. (And since you gave the result the same name, you have basically wiped out match2.)
How do I do this? :-)
Do what?
David Winsemius, MD Heritage Laboratories West Hartford, CT