[R] R loop

ivo welch ivowel at gmail.com
Mon Feb 6 21:57:30 CET 2006


> > 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




More information about the R-help mailing list