# Create a data set to analyze
mygendata <-
array(list(c(124,128,138),c(122,130,140,142),c(122,132,136),
c(122,134,140),
c(203,212,218),c(197,206,221),c(215),c(200,218),
c(140,144,148,150),c(-9),c(146,150),c(152,154,158))
, dim=c(4,3), dimnames=list(c("ind1","ind2","ind3","ind4"),
c("locus1","locus2","locus3")))
# Run the function
estimate.ploidy(mygendata)
Run the code above in your browser using DataLab