[adegenet-forum] Store spatial coordinates
t.jombart at imperial.ac.uk
Thu Oct 1 20:19:55 CEST 2015
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).
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
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the adegenet-forum