From hpages at fhcrc.org  Thu Nov 12 06:20:57 2009
From: hpages at fhcrc.org (=?ISO-8859-1?Q?Herv=E9_Pag=E8s?=)
Date: Wed, 11 Nov 2009 21:20:57 -0800
Subject: [Rd] unname() returns a named vector when the input vector has
 length 0
Message-ID: <5527_1258003273_4AFB9B48_5527_3290_1_4AFB9B39.7050804@fhcrc.org>

Hi,

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

Cheers,
H.

 > sessionInfo()
R version 2.10.0 (2009-10-26)
x86_64-unknown-linux-gnu

locale:
  [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8
  [5] LC_MONETARY=C              LC_MESSAGES=en_CA.UTF-8
  [7] LC_PAPER=en_CA.UTF-8       LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_2.10.0



[Rd] unname() returns a named vector when the input vector has length 0
=?ISO-8859-1?Q?Herv=E9_Pag=E8s?=