Skip to content

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

1 message · Liaw, Andy

#
If you are referring to the row names of the matrix from which distances are
computed, see the "Value" section of ?dist, which has:

The object has the following attributes (besides "class" equal to "dist"): 

Size   integer, the number of observations in the dataset. 
Labels optionally, contains the labels, if any, of the observations of the
dataset. 
[...]

Andy