[Rd] unname() returns a named vector when the input vector has length 0

Martin Maechler maechler at stat.math.ethz.ch
Thu Nov 12 11:26:02 CET 2009


>>>>> "HP" == Hervé Pagès <hpages at fhcrc.org>
>>>>>     on Wed, 11 Nov 2009 21:20:57 -0800 writes:

    HP> Hi,
    >> x <- c(aa=22, bb=555)
    >> unname(x[FALSE])
    HP> named numeric(0)

Thank you, Hervé,
I'm about to commit a simple fix for that.

Martin



More information about the R-devel mailing list