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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to