From sfalcon at fhcrc.org  Tue May  8 16:42:10 2007
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Tue, 08 May 2007 07:42:10 -0700
Subject: [Rd] Problem calling $ inside a $ method
In-Reply-To: <Pine.LNX.4.64.0705080659320.31427@gannet.stats.ox.ac.uk> (Brian
	Ripley's message of "Tue, 8 May 2007 07:25:43 +0100 (BST)")
References: <m24pmn6hbm.fsf@ziti.local>
	<Pine.LNX.4.64.0705080659320.31427@gannet.stats.ox.ac.uk>
Message-ID: <m2vef32x8d.fsf@ziti.local>

Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:

> In x$name, 'name' is supposed to be a symbol, unevaluated, or a
> literal character string (but not a character vector).
>
>> f <- list(bob=1, alice=2)
>> `$`(f, "bob")
> [1] 1
>> nm <- "bob"
>> `$`(f, nm)
> NULL

Thanks, this is the piece I was missing.

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org



[Rd] Problem calling $ inside a $ method
Seth Falcon