[R] names(dist(mat)) gives NULL in R 2.1.0

From: Elio Mineo <elio_mineo_at_economia.unipa.it>
Date: Thu 05 May 2005 - 21:16:42 EST


Dear list,
I do not know if this is a bug.
Let's suppose mat is a matrix derived from this code:

> x<-rnorm(10)
> y<-rnorm(10)
> names(x)<-LETTERS[1:10]
> names(y)<-LETTERS[1:10]
> mat<-cbind(x,y)

Now in R 2.0.1 I have:

> names(dist(mat))

"A" "B" "C" "D" "E" "F" "G" "H" "I" "J"

In R 2.1.0 I have:

> names(dist(mat))

NULL
I have tried this on Windows (precompiled binary distribution) and on Linux Mandrake 10.0 (R compiled from source code). Is this a bug or not?
Thanks in advance,
Elio

-- 
----------------------------------------------------------------------------------
Angelo M. Mineo
Dipartimento di Scienze Statistiche e Matematiche "S. Vianelli"
UniversitÓ degli Studi di Palermo
Viale delle Scienze
90128 Palermo
url: http://dssm.unipa.it/elio

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu May 05 21:23:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:35 EST