Re: [R] R loop

From: ivo welch <ivowel_at_gmail.com>
Date: Tue 07 Feb 2006 - 07:57:30 EST

> > data[ data$a == "name2" ] # does not work and gives a weird result, yuck
>
> data[data$a=="name2",]
>

sorry about this. I believe a few versions back, one could not subset data frames, so I did not even check what I wrote. Works now.

> Look at ?order.

I know. This is why I suggested only that we need a wrapper that plugs an order() functionality into the sort() function (which fortunately points in its docs to order)---but novices would find the sort syntax easier.

regards,

/iaw



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Feb 07 08:10:24 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:24 EST