[Rd] Strange behaviour of the [[ operator

From: Herve Pages <hpages_at_fhcrc.org>
Date: Sat 30 Sep 2006 - 01:06:41 GMT


Hi,

This looks like a bug:

> a <- list(b=5)
> a[['b']]

    [1] 5
> a[[t<-'b']]

Nothing gets printed!

I need to use parenthesis to see the expected result:

> a[[(t<-'b')]]

    [1] 5

Cheers,
H.



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Sep 30 11:10:22 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 30 Sep 2006 - 15:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.