[R] NMDS QUESTION

Berend Hasselman bhh at xs4all.nl
Sun Sep 1 15:54:47 CEST 2013


On 01-09-2013, at 15:34, Simona Augyte <simona.augyte at uconn.edu> wrote:

> Ok, thanks, that helps. 
> 
> What about running the same code on a bit of a different set of data, ex.;
> korma<- read.csv(text="
> GR  T	C	M	B
> 1	0	0	0	1
> 2	0	1	0	0
> 3	1	1	0	1
> 4	1	0	1	1
> 5	0	0	0	1
> 6	1	0	1	1…

Is the … part of your data?
It makes column 5 a factor. Is tha
> ",sep="",row.names=1,header=TRUE)
> 
> str(korma)
> dist(korma)
> korma.dist<- dist(korma)
>  korma.mds <- isoMDS(korma.dist)
> #Error in isoMDS(korma.dist) :   zero or negative distance between objects 1 and 5
> # What do I need to do to my data to avoid the error message?

I don't know. Maybe remove … from column 5?  Where does isoMDS come from?

Berend



More information about the R-help mailing list