When I try to run the "sammon" function of the multiv package, I always get this error message: Error in as.vector(dist(a)) : couldn't find function "dist" It happens even with example(sammon). I am running R 1.5.0 on Win98 and I have still installed R 1.4.1 but it doesn't work on the old R version with the older multiv package either. Is there a problem with the function or do I have to install and load some other package also? In which package is the "dist" function located? Thank you in advance, Kyriakos Kachrimanis -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
There is a dist() function in the package mva, so try loading that before running sammon(). Andy> -----Original Message----- > From: Kyriakos Kachrimanis [mailto:kgk at pharm.auth.gr] > Sent: Tuesday, July 30, 2002 6:21 AM > To: r-help at stat.math.ethz.ch > Subject: [R] Error running sammon() in multiv package > > > When I try to run the "sammon" function of the multiv > package, I always get > this error message: > > Error in as.vector(dist(a)) : couldn't find function "dist" > > It happens even with example(sammon). I am running R 1.5.0 on > Win98 and I > have still installed R 1.4.1 but it doesn't work on the old R > version with > the older multiv package either. Is there a problem with the > function or do > I have to install and load some other package also? > In which package is the "dist" function located? > > Thank you in advance, > Kyriakos Kachrimanis > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > -.-.-.-.-.-.-.-.- > r-help mailing list -- Read > http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: > r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. > _._._._._._._._._ >------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. ============================================================================= -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, Jul 30, 2002 at 01:21:14PM +0300, Kyriakos Kachrimanis wrote:> When I try to run the "sammon" function of the multiv package, I always get > this error message: > > Error in as.vector(dist(a)) : couldn't find function "dist" > > It happens even with example(sammon). I am running R 1.5.0 on Win98 and I > have still installed R 1.4.1 but it doesn't work on the old R version with > the older multiv package either. Is there a problem with the function or do > I have to install and load some other package also? > In which package is the "dist" function located?The function 'sammon' in the package MASS seems functioning. You may consider it as an alternative. Regards, L.> > Thank you in advance, > Kyriakos Kachrimanis > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
First of all, I would like to thank you all for your help. I found the function "dist" in mva library. I also found a "sammon" function in the MASS library that uses "dist" and it is indeed functioning, so my problem is solved. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._