Skip to content
Back to formatted view

Raw Message

Message-ID: <451DC321.2030704@fhcrc.org>
Date: 2006-09-30T01:06:41Z
From: Hervé Pagès
Subject: 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.