Re: [R] Duplicated function with conditional statement

2013-07-28 Thread vanessa van der vaart
#208 buy 5 0 #218 sample 4 1 #228 buy 2 1 A.K. - Original Message - From: arun smartpink...@yahoo.com To: vanessa van der vaart vanessa.va...@gmail.com Cc: David Winsemius dwinsem...@comcast.net; R help r-help@r-project.org

Re: [R] Duplicated function with conditional statement

2013-07-27 Thread vanessa van der vaart
, David Winsemius wrote: On Jul 26, 2013, at 11:51 AM, Uwe Ligges wrote: On 25.07.2013 21:05, vanessa van der vaart wrote: Hi everybody,, I have a question about R function duplicated(). I have spent days try to figure this out,but I cant find any solution yet. I hope somebody can

[R] Duplicated function with conditional statement

2013-07-26 Thread vanessa van der vaart
Hi everybody,, I have a question about R function duplicated(). I have spent days try to figure this out,but I cant find any solution yet. I hope somebody can help me.. this is my data: subj=c(1,1,1,2,2,3,3,3,4,4) response=c('sample','sample','buy','sample','buy','sample','