Skip to content
Prev 22199 / 63421 Next

Strange behaviour of the [[ operator

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.