From ripley at stats.ox.ac.uk  Wed Nov 10 14:02:46 2010
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 10 Nov 2010 13:02:46 +0000 (GMT)
Subject: [Rd] typo in ?eapply
In-Reply-To: <4CDA01A8.8050208@fhcrc.org>
References: <4CDA01A8.8050208@fhcrc.org>
Message-ID: <alpine.LFD.2.00.1011101252270.16801@toucan.stats.ox.ac.uk>

On Tue, 9 Nov 2010, Herv? Pag?s wrote:

> Hi,
>
> Found in ?eapply (in current R-devel):
>
> \value{
>  A named (unless \code{USE.NAMES = FALSE}) list.  Note that the order of
>  the components is arbitrary for hashed environments: currently it will
>  be in the order the name-value pairs were added for unhashed
>                                                      ^^^^^^^^
>                                                      hashed?
>  environments.
> }
>
> This looks like a typo.

Only to someone who does not understand hashing.  Please try it for 
yourself:

e <- new.env(hash=TRUE)
assign("a", 1, e)
assign("ab", 2, e)
assign("abcde", 2, e)
assign("ac", 3, e)
assign("b", 4, e)
names(eapply(e, mean))

(and I get
[1] "a"     "b"     "abcde" "ab"    "ac"
)

>
> Thanks,
> H.
>
> -- 
> Herv? Pag?s
>
> Program in Computational Biology
> Division of Public Health Sciences
> Fred Hutchinson Cancer Research Center
> 1100 Fairview Ave. N, M2-B876
> P.O. Box 19024
> Seattle, WA 98109-1024
>
> E-mail: hpages at fhcrc.org
> Phone:  (206) 667-5791
> Fax:    (206) 667-1319
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] typo in ?eapply
Prof Brian Ripley