Your question has been answered by Achim and Peter Dalgaard (at least).
Just a note:
Using
a[which(logic)]
looks like a clumsy and inefficient way of writing
a[ logic ]
and I think you shouldn't propagate its use ...
Martin Maechler <[EMAIL PROTECTED]> http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum LEO C16 Leonhardstr. 27
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
phone: x-41-1-632-3408 fax: ...-1228 <><
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help