From ripley at stats.ox.ac.uk  Tue Apr 12 16:44:51 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue Apr 12 16:45:12 2005
Subject: [Rd] MASS: isoMDS drops names of points in R-2.1.0 (PR#7786)
In-Reply-To: <20050412135725.85A2CCC58@slim.kubism.ku.dk>
References: <20050412135725.85A2CCC58@slim.kubism.ku.dk>
Message-ID: <Pine.LNX.4.61.0504121544110.9543@gannet.stats>

Please DO read the FAQ and do not send reports on contributed packages to 
R-bugs.

On Tue, 12 Apr 2005 jari.oksanen@oulu.fi wrote:

> Full_Name: Jari Oksanen
> Version: 2.1.0
> OS: Linux & MacOS X
> Submission from: (NULL) (130.231.102.145)
>
>
> isoMDS (MASS) drops names of points. The reason seems to be that R-2.1.0
> abandoned names.dist that isoMDS uses to get the Labels attribute of dist
> object:
>
>    points <- matrix(tmp$y, , k)
>    rn <- if (is.matrix(d))
>        rownames(d)
>    else names(d)   # This does not work any longer
>    dimnames(points) <- list(rn, NULL)
>    list(points = points, stress = tmp$val)
>
> The solution is obvious but not very elegant.
>
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] MASS: isoMDS drops names of points in R-2.1.0 (PR#7786)
Prof Brian Ripley