Skip to content
Prev 33850 / 63424 Next

clearNames and unname

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