Re: [R] cmdscale: missing dimnames in R 2.1.0

From: Jari Oksanen <jarioksa_at_sun3.oulu.fi>
Date: Tue 03 May 2005 - 17:26:18 EST

On Tue, 2005-05-03 at 09:05 +0200, Wolfram Fischer - Z I M wrote:
> 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?
>
You can use R 2.1.0-patched where this is fixed.

cheers, jari oksanen

-- 
Jari Oksanen <jarioksa@sun3.oulu.fi>

______________________________________________
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 Tue May 03 17:32:45 2005

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