[R] names(dist(mat)) gives NULL in R 2.1.0
Elio Mineo
mineoeli at unipa.it
Thu May 5 13:58:02 CEST 2005
Thanks, Peter.
So, in R 2.1.0 there is no way to get names from a "dist" object, isn't
there?
Peter Dalgaard wrote:
>Elio Mineo <elio_mineo at economia.unipa.it> writes:
>
>
>
>>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?
>>
>>
>
>Not.
>
>>From the NEWS file:
>
> o The S3 methods for getting and setting names of "dist" objects
> have been removed (as they provided names with a different
> length from the "dist" object itself).
>
>(some side effects are fixed in 2.1.0-patched)
>
>
>
--
----------------------------------------------------------------------------------
Prof. 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
More information about the R-help
mailing list