Re: [R] Comparison of Date format

2013-04-13 Thread farnoosh sheikhi
Thank you so much. You are the BEST:-) Now, I'm gonna learn all these codes and understand.   Cc: R help Sent: Saturday, April 13, 2013 5:18 PM Subject: Re: Comparison of Date format Hi, DataA<- structure(list(ID = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L,

Re: [R] Comparison of Date format

2013-04-13 Thread arun
Hi, DataA<- structure(list(ID = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L), Status = c("A", "B", "A", "B", "A", "B", "A", "A", "B", "B", "A", "A", "A",

Re: [R] Comparison of Date format

2013-04-12 Thread arun
HI, In cases like below: DataA<- read.table(text=" ID,Status,Date1,Date2            1,A,3-Feb-01,15-May-01         1,B,15-May-01,16-May-01         1,A,16-May-01,3-Sep-01                     1,B,3-Sep-01,13-Sep-01                     1,C,13-Sep-01,26-Feb-04                     2,A,9-Feb-01

Re: [R] Comparison of Date format

2013-04-12 Thread arun
Hi,  In the example you provided, it looks like the dates in Date2 happens first.  So, I changed it a bit.  DataA<- read.table(text=" ID,Status,Date1,Date2            1,A,3-Feb-01,15-May-01         1,B,15-May-01,16-May-01         1,A,16-May-01,3-Sep-01                     1,B,3-Sep-01,