Re: [R] Extracing Unique Rows based on 2 Column

2015-11-29 Thread Johannes Huesing
Ragia Ibrahim [Mon, Nov 30, 2015 at 04:55:08AM CET]: Dear group, kindly,  I have a data frame, as follows:  Measure_id i j value      rank I want to select distinct rows based on two coulmn ( Measure_id  and i ) I didn't get your example code to run but the following works for me: dfr <-

Re: [R] Extracing Unique Rows based on 2 Column

2015-11-29 Thread Boris Steipe
A logical expression applied to a vector (such as a dataframe column) gives you a logical vector that you can use for selection. You can combine several of these with the & (AND) and | (OR) operator. In your case, you apparently want a range of possible values. Use the %in% operator. Consider e

[R] Extracing Unique Rows based on 2 Column

2015-11-29 Thread Ragia Ibrahim
Dear group, kindly,  I have a data frame, as follows:  Measure_id i j value      rank 1           1 2 3   2.0 1.000 2           1 5 1   2.0 1.000 3           1 2 1   1.5 0.750 4           1 5 2   1.5 0.750 5           1 7 3   1.5 1.000 6           1 2 4   1.0 0.500 7