Skip to content

comparing fields within a record

5 messages · Eric Wolff, Jorge I Velez, David Winsemius

#
On Dec 26, 2011, at 7:52 PM, Eric Wolff wrote:

            
dat <- within(x, Checked <-  as.Date(Inspected, format="%m/%d/%Y") <  
as.Date(Sold, format="%m/%d/%Y"))

Note: it might have been easier if you had converted those string or  
factor variables into R Date variables.

--

David Winsemius, MD
West Hartford, CT