Skip to content

Solved: was names(dist(mat)) gives NULL in R 2.1.0

2 messages · Elio Mineo, Brian Ripley

#
Thanks to Andy Liaw to suggest me the right solution (at least for me):

attributes(dist(mat))$Labels

or

attr(dist(mat),"Labels")

Bye,
Elio
#
On Thu, 5 May 2005, Elio Mineo wrote:

            
R 2.2.0 will allow labels(dist_object), which seem natural (and unlike 
names promises nothing about the returned object).