[adegenet-forum] Error in spdep::lag.listw(listw, x, TRUE) : object lengths differ

Jombart, Thibaut t.jombart at imperial.ac.uk
Mon May 3 21:39:28 CEST 2010


Dear Nevil, 

thanks for joining your RData, but I can't guess what is wrong if I don't have your R command. Besides, and as you suggest, did you check if there are NAs in your spatial coordinates?

Best

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 Nevil Amos [nevil.amos at gmail.com]
Sent: 03 May 2010 11:06
To: adegenet-forum at lists.r-forge.r-project.org
Subject: [adegenet-forum] Error in spdep::lag.listw(listw, x,   TRUE) : object lengths differ

I am receiving the below error message presumably because one of my data
fileds contians a missing value or something similar?

Any indications of how to trace it back would be appreciated.  I have
attached the workspace if that is permissible.

Choose a connection network:
          Delaunay triangulation (type 1)
          Gabriel graph (type 2)
          Relative neighbours (type 3)
          Minimum spanning tree (type 4)
          Neighbourhood by distance (type 5)
          K nearest neighbours (type 6)
          Inverse distances (type 7)
Answer: 1

Keep this graph (y/n)? y
Error in spdep::lag.listw(listw, x, TRUE) : object lengths differ


More information about the adegenet-forum mailing list