Re: [R] add values in one column getting range from other column

2012-10-02 Thread Rui Barradas
=0", "0-25", "25-50", "50-75", ">75"))),function(x) x) # Area Range x #1 456 <=0 0 #2 467 <=0 0 #3 1120 <=0 0 #4 56 0-25 18 #5 79 0-25 25 #6 3400 0-25 10 #7 67 50-75 67 #8 839 >75 85 #9 3482 >75 85 A.K. ---

Re: [R] add values in one column getting range from other column

2012-10-02 Thread arun
  25  0-25 #4   56  18  0-25 #5  467   0   <=0 #6   67  67 50-75 #7  839  85   >75 #8 1120   0   <=0 #9 3482  85   >75 A.K. - Original Message - From: Sapana Lohani To: R help Cc: Sent: Tuesday, October 2, 2012 5:25 PM Subject: [R] add values in one

Re: [R] add values in one column getting range from other column

2012-10-02 Thread arun
0-25 18 #5   79  0-25 25 #6 3400  0-25 10 #7   67 50-75 67 #8  839   >75 85 #9 3482   >75 85 A.K. - Original Message ----- From: Sapana Lohani To: R help Cc: Sent: Tuesday, October 2, 2012 5:25 PM Subject: [R] add values in one column getting range from other column Hi, My dataframe h

[R] add values in one column getting range from other column

2012-10-02 Thread Sapana Lohani
Hi, My dataframe has two columns one with area and other with percent. How can i add the areas that are within a range of percentage?? My dataframe looks like Area Percent 456   0 3400  10 79  25 56   18 467 0 67  67 839    85 1120  0 3482