Skip to content
Prev 1307 / 21312 Next

[Bioc-devel] sorting objects with user-defined comparison function

Hi Wolfgang --

I guess these are S4 objects. One way might be, for a list l of
objects with slots x, y
slot access might be replaced by 'order_keygen' to generate whatever
the comparison value should be.

Here's a complete example:
+          representation=representation(
+            x="numeric",
+            y="character"))
[1] "A"
[1] 10  1  5 10  7  7
[1] "k" "d" "z" "y" "z" "k"
[1] 1 1 1 1 1 1
[1] "d" "j" "k" "n" "q" "r"

Martin (with input from Seth)

Wolfgang Huber <huber at ebi.ac.uk> writes: