Re: [R] Add column from other columns data.

2012-05-17 Thread Petr PIKAL
:38 -0700 (PDT) To: r-help@r-project.org Subject: [R] Add column from other columns data. Hi everyone, I am having some problems with making a new colomn wit data in it. I have this one column named: Fulfilled Fulfilled 1 1 0 1 1 1 1 0 0 1 And now I would

[R] Add column from other columns data.

2012-05-14 Thread Yellow
Hi everyone, I am having some problems with making a new colomn wit data in it. I have this one column named: Fulfilled Fulfilled 1 1 0 1 1 1 1 0 0 1 And now I would like to add another colum to my .csv file (Finished) In this Finished column I would like to have Yes or No. Where in colomn

Re: [R] Add column from other columns data.

2012-05-14 Thread Sarah Goslee
Assuming you actually have a data frame or matrix, and not a csv file, ifelse() is the general solution to your problem. Sarah On May 14, 2012, at 8:45 AM, Yellow s1010...@student.hsleiden.nl wrote: Hi everyone, I am having some problems with making a new colomn wit data in it. I have

Re: [R] Add column from other columns data.

2012-05-14 Thread John Kane
Something along the lines of dat2 - ifelse( dat1==1 , yes, no) should do it. John Kane Kingston ON Canada -Original Message- From: s1010...@student.hsleiden.nl Sent: Mon, 14 May 2012 05:45:38 -0700 (PDT) To: r-help@r-project.org Subject: [R] Add column from other columns data

Re: [R] Add column from other columns data.

2012-05-14 Thread Yellow
That worked. Thanks. :) -- View this message in context: http://r.789695.n4.nabble.com/Add-column-from-other-columns-data-tp4629921p4629937.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list