Re: [R] comparing fields within a record

2011-12-27 Thread Eric Wolff
Sold, "%m/%d/%y") > 0) >> [1] FALSE FALSE TRUE FALSE >> >> > x[with(x, as.Date(Inspected, "%m/%d/%y") - as.Date(Sold, "%m/%d/%y") > >> 0), ] >> House_number Inspected Sold >> 33 10/31/2011 8/28/2011 >

[R] comparing fields within a record

2011-12-26 Thread Eric Wolff
Hi, I hope this isn't a really simple question, I've been struggling with it for a while. I'm looking for a way to get a function to go through a data frame line by line, compare fields, and produce a result, kind of a transform and an if statement combined (I tried to put them together and it di