From maechler at stat.math.ethz.ch  Thu Sep  3 17:02:35 2009
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Thu, 3 Sep 2009 17:02:35 +0200
Subject: [Rd] clearNames and unname
In-Reply-To: <19103.53056.407750.237426@lynne.math.ethz.ch>
References: <f8e6ff050909030616r21a29548w2181ca0bb3c8a59e@mail.gmail.com>
	<19103.53056.407750.237426@lynne.math.ethz.ch>
Message-ID: <19103.55947.28119.671358@lynne.math.ethz.ch>

>>>>> "MM" == Martin Maechler <maechler at stat.math.ethz.ch>
>>>>>     on Thu, 3 Sep 2009 16:14:24 +0200 writes:

>>>>> "HW" == Hadley Wickham <hadley at rice.edu>
>>>>>     on Thu, 3 Sep 2009 08:16:27 -0500 writes:

    HW> Just noticed these two functions (clearNames is stats and unname in
    HW> base) that do the same thing.

    MM> clearNames looks like an accident.  unname() has existed for
    MM> much longer {and as someone else said}, 
    MM> has been more general, too.

Hmm, the first part in the above may be wrong:
clearNames() has been part of the 'nls' package (before that
was integrated into 'stats'),
and the code of 'nls' may well have been almost as old as the
unname() function :
I see both in  R 0.90.1  (December 15, 1999).

I see only about 5 usages of clearNames() in CRAN packages, and
none in the 300+ Bioconductor "Rpacks"  packages.

Consequently, I'm proposing to deprecate  clearNames() {for
unname()}.

Martin



[Rd] clearNames and unname
Martin Maechler