Re: [R] Add a column to a dataframe based on multiple other column values

2013-06-12 Thread arun
0 #8 33  82 870 100 1490 97 93.0 #9 33   0 871  82 1494 85 55.7 A.K. - Original Message - From: arun To: Tom Oates Cc: R help Sent: Tuesday, June 11, 2013 5:23 PM Subject: Re: [R] Add a column to a dataframe based on multiple other column values HI, May be this helps:

Re: [R] Add a column to a dataframe based on multiple other column values

2013-06-12 Thread Keith S Weintraub
put the calculated column at the end of mdat.pure. Note that I haven't taken account of missing values. Hope this helps, KW -- On Jun 12, 2013, at 6:00 AM, r-help-requ...@r-project.org wrote: > Message: 35 > Date: Tue, 11 Jun 2013 17:07:12 +0100 > From: Tom Oates

Re: [R] Add a column to a dataframe based on multiple other column values

2013-06-11 Thread arun
roject.org Cc: Sent: Tuesday, June 11, 2013 12:07 PM Subject: [R] Add a column to a dataframe based on multiple other column values Hi I have a dataframe as below: x1    y1    x2    y2    x3    y3    output 2    100    190    99    1430    79    89 2    100    192    63    1431    75   

[R] Add a column to a dataframe based on multiple other column values

2013-06-11 Thread Tom Oates
Hi I have a dataframe as below: x1y1x2y2x3y3output 21001909914307989 21001926314317569 21001926314445157 301959914995074.5 301989815008089 300198