Skip to content
Back to formatted view

Raw Message

Message-ID: <20050503070528.GA2752@s1x.local>
Date: 2005-05-03T07:05:28Z
From: wolfram at fischer-zim.ch
Subject: cmdscale: missing dimnames in R 2.1.0

When running the first example of cmdscale I got in R 2.0.1:

> loc<-cmdscale(eurodist)
> str(loc)
 num [1:21, 1:2] 2290.3 -825.4   59.2  -82.8 -352.5 ...
 - attr(*, "dimnames")=List of 2
  ..$ : chr [1:21] "Athens" "Barcelona" "Brussels" "Calais" ...
  ..$ : NULL


In R 2.1.0 I get:

> loc<-cmdscale(eurodist)
> str(loc)
 num [1:21, 1:2] 2290.3 -825.4   59.2  -82.8 -352.5 ...
 - attr(*, "dimnames")=List of 2
  ..$ : NULL
  ..$ : NULL

I miss the names of the cities. What can I do?

Thanks - Wolfram