Hi

On 6 Feb 2006 at 15:57, ivo welch wrote:

Date sent:              Mon, 6 Feb 2006 15:57:30 -0500
From:                   ivo welch <[EMAIL PROTECTED]>
To:                     Sean Davis <[EMAIL PROTECTED]>
Copies to:              [EMAIL PROTECTED], r-help <[email protected]>
Subject:                Re: [R] R loop

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

It depends on what you consider few versions back. I started with R 
vesion 1.2.0 about 10 years ago and I believe that data frame 
subsetting was done in **very** similar manner as it is performed 
now.

Cheers
Petr

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

Petr Pikal
[EMAIL PROTECTED]

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

Reply via email to