From hpages at fhcrc.org  Sat Sep 30 03:06:41 2006
From: hpages at fhcrc.org (Herve Pages)
Date: Fri, 29 Sep 2006 18:06:41 -0700
Subject: [Rd] Strange behaviour of the [[ operator
Message-ID: <451DC321.2030704@fhcrc.org>

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.




[Rd] Strange behaviour of the [[ operator
Herve Pages