[adegenet-forum] Store spatial coordinates

Jombart, Thibaut t.jombart at imperial.ac.uk
Thu Oct 1 20:19:55 CEST 2015


Hello,

Sorry, I feel I am saying this too often, but please, please, please go through the basics (intro to R etc) if you haven't yet - R is going to be hell otherwise.

You do not need to store the xy coords in your genind. In fact, you do not need a genind at all. See ?monmonier. All you need is a data.frame with your xy coordinates (which you can get using e.g. read.table or read.csv) and a dist object containing pairwise distances.

If you haven't already, check the "basics" tutorial for an example of Monmonier (section 7.2).
https://github.com/thibautjombart/adegenet/raw/master/tutorials/tutorial-basics.pdf

Cheers
Thibaut



________________________________
From: adegenet-forum-bounces at lists.r-forge.r-project.org [adegenet-forum-bounces at lists.r-forge.r-project.org] on behalf of Cláudia Figueira [claudiafigueira at ua.pt]
Sent: 01 October 2015 11:00
To: adegenet-forum at lists.r-forge.r-project.org
Subject: [adegenet-forum] Store spatial coordinates



Hello,

For my Monmorier analysis I'm trying to store the spatial coordinates into a genind object but I'm not succeed.
I'm new in R, so the code is not very easy for me. I'm readind a several of different tutorials and still have not found how to do it.
You guys can help me?

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20151001/0ba8232f/attachment.html>


More information about the adegenet-forum mailing list