Hello
Dne Ne 12. října 2014 15:47:58 jste napsal(a):
> Dear Vojtěch,
>
> thank you for answering. I tried but didn't get ahead.
>
> > data2<-read.table("shoreline1.txt",header=F,sep="\t")
> > Dgeo <- data2
> > Dgeo
>
> V1 V2 V3 V4 V5 V6
> 1 Da KH Li Lit RD
> 2 KH 139.2
> 3 Li 146.7 7.5
> 4 Lit 151.5 12.3 4.8
> 5 RD 171.9 32.7 25.2 20.4
> 6 WW 155.3 16.1 8.6 3.8 16.6You must convert Dgeo object to dist class. I'd try function as.dist. Something like Dgeo <- as.dist(Dgeo) You can verify it with is.dist. > > ibd <- mantel.randtest(Dgen,Dgeo) > > Error in mantel.randtest(Dgen, Dgeo) : Object of class 'dist' expected Function mantel.randtest requires dist class object. See ?mantel.randtest and ?dist > Maybe you can give me a hint. > > Regards, > Isabelle Sincerely, Vojtěch > >>> VojtěchZeisek <[email protected]> 12.10.14 12.28 Uhr >>> > > Hello > > Dne Ne 12. října 2014 10:47:23, Isabelle Gemmer napsal(a): > > Hello, > > > > I installed coordinates for the Mantel test. > > > > > data1$other$xy<-dataxy > > > Dgeo <- dist(data1$other$xy) > > > ibd <- mantel.randtest(Dgen,Dgeo) > > > > It worked well. But in reality, the examined organisms can not swim > > through a lake, they can only migrate along a shoreline. Thus, I > > measured the distances and provide an own matrix of geographic > > distances. > > > My question is: Can I also install own measured geographic distances > > instead of coordinates? > > Sure, just as Dgeo use matrix o distances along shoreline, so You > wouldn't use > dist function, but computed then for example in GIS and then imported > into R. > > > Regards, > > Isabelle > > Sincerely, > Vojtěch -- Vojtěch Zeisek http://trapa.cz/en/ Department of Botany, Faculty of Science Charles University in Prague Benátská 2, Prague, 12801, CZ http://botany.natur.cuni.cz/en/ Institute of Botany, Academy of Science Zámek 1, Průhonice, 25243, CZ http://www.ibot.cas.cz/en/ Czech Republic
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ R-sig-phylo mailing list - [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/[email protected]/
