[adegenet-forum] scaleGen error using method="binom"

Roman Luštrik roman.lustrik at biolitika.si
Wed Jun 15 09:48:12 CEST 2016


Hi Stephen, 

along with the answer provided in this thread, there's also an answer on GitHub . What adegenet tutorial are you referring to? 

Cheers, 
Roman 
---- 
In god we trust, all others bring data. 


From: "Stephen Attwood" <swahuaxi at yahoo.com> 
To: adegenet-forum at lists.r-forge.r-project.org 
Sent: Monday, June 13, 2016 3:02:24 PM 
Subject: [adegenet-forum] scaleGen error using method="binom" 

Dear All 

I am having a problem using scaleGen, so I tried going back to the adegenet tutorial and I get the same error: 

data(microbov) 
obj <- genind2genpop(microbov) 
X1 <- scaleGen(obj) 
X2 <- scaleGen(obj,met="bin") 
Error in .local(x, ...) : unused argument (met = "bin") 

I get the same error with my own data (I also tried method = "binary", method = "bin", etc) 

X1 is as expected, but X2 is obviously not assigned 

I have the following packages loaded: 
library(ade4) 
library(adegenet) 
library(spdep) 
library ("OpenStreetMap") 
library(ape) 

Using adegenet 2.0.2 and R version 3.2.5 (2016-04-14); platform x86_64-pc-linux-gnu 

If someone could suggest what I might have overlooked, that would be a great help - I am probably missing a package somewhere. I thought it would be a common problem, but I haven't found it on Google - perhaps the solution is so simple. At the moment it is eluding me. 

Thank you. 

Stephen 

_______________________________________________ 
adegenet-forum mailing list 
adegenet-forum at lists.r-forge.r-project.org 
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20160615/09aad818/attachment-0001.html>


More information about the adegenet-forum mailing list