[adegenet-forum] basic.stat_hierfstat
Maria Guerrina
maria.guerrina at edu.unige.it
Wed Nov 11 16:04:23 CET 2015
Hi all,
I would like to use the function basic.stat in hierfstat. I am using the hierfstat version 04-14 and R 3.2.2.
If I use the function on a genind object, I get the following error message:
basicstat <- basic.stats(Mydata1, diploid = TRUE, digits = 4)
Error in unique.default(x, nmax = nmax) :
unique() only applied to vectors
If I use the function on a simple data frame without the first column (individuals), I get the following error message:
> basic.stats(a[,-1])
Error in data.frame(pop = rep(data[, 1], 2), ind = ind, al = rbind(firstal, :
arguments imply differing number of rows: 356, 236
but my data frame as 178 rows and not 356 or 236.
Any idea??
Thanks
Maria
--
Maria Guerrina PhD
Università di Genova
DISTAV
Corso Dogali 1M
I - 16136 GENOVA (Italy)
maria.guerrina at edu.unige.it
More information about the adegenet-forum
mailing list