Re: [R] subselecting on Data frame

2013-08-05 Thread Adams, Jean
Can you give an example of what your final product would look like? I'm not exactly sure what you mean by triplets of features. Assuming your data frame is called "df", the code below subsets those with a score > 0.6 and then groups the rows by unique Scaff and Cat. This might help you get start

[R] subselecting on Data frame

2013-08-03 Thread PQuery
Dear all, I have a data frame of features (example pasted below) from which I would like to select, say: how many triplets of features (corresponding to rows) have the same Scaff and the same "Cat" and a score >0.6 and fall in a distance of max 1 (distance defined as Start of row[i+1] - End o