Sent: Saturday, July 27, 2013 9:11 PM
Subject: Re: [R] Duplicated function with conditional statement
HI,
May be this is what you wanted.
#using tt1
indx-which(tt1$response==buy)
tt1$newcolumn-0
tt1[unique(unlist(lapply(seq_along(indx),function(i){x1-if(i==length(indx))
seq(indx[i],nrow
-
From: David Winsemius dwinsem...@comcast.net
To: David Winsemius dwinsem...@comcast.net
Cc: R-help@r-project.org; Uwe Ligges lig...@statistik.tu-dortmund.de
Sent: Friday, July 26, 2013 5:16 PM
Subject: Re: [R] Duplicated function with conditional statement
On Jul 26, 2013, at 2:06 PM
-project.org
Sent: Saturday, July 27, 2013 6:55 PM
Subject: Re: [R] Duplicated function with conditional statement
Dear all,,
thank you all for your help..Its been such a help but its not really exactly
what I am looking for. Apparently I havent explained the condition very
clearly. I hope
der vaart vanessa.va...@gmail.com
Cc: David Winsemius dwinsem...@comcast.net; R help r-help@r-project.org
Sent: Saturday, July 27, 2013 9:11 PM
Subject: Re: [R] Duplicated function with conditional statement
HI,
May be this is what you wanted.
#using tt1
indx-which(tt1$response==buy)
tt1$newcolumn
in newColumn as 1.
Hope it helps.
Regards,
A.K.
From: vanessa van der vaart vanessa.va...@gmail.com
To: arun smartpink...@yahoo.com
Sent: Saturday, July 27, 2013 11:07 PM
Subject: Re: [R] Duplicated function with conditional statement
Dear Arun,,
Thank
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','
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 help
me..
this is my data:
subj=c(1,1,1,2,2,3,3,3,4,4)
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 help
me..
this is my data:
On Jul 26, 2013, at 2:06 PM, 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
, 2013 5:16 PM
Subject: Re: [R] Duplicated function with conditional statement
On Jul 26, 2013, at 2:06 PM, 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
10 matches
Mail list logo