On Tue, Jul 10, 2012 at 4:53 PM, Peter Ehlers <[email protected]> wrote: > Both this and Liviu's original solution destroy the > factor nature of 'Species' (which may not matter, of > course). How about > > > (.xb <- iris[ iris$Species=='zz', ]) > .xb <- .xb[1, ] # this probably shouldn't work, but it does. > This one is an excellent solution, but yet another---what I call---quirky behaviour from R.
Thanks all! Regards Liviu ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

