[adegenet-forum] Randomly subsetting genind object

nvincigue at gmail.com nvincigue at gmail.com
Sat Sep 1 15:28:22 CEST 2018


Is there a way to randomly sample a subset of my SNP data, say 13 SNPs out of ~3k, in adegenet when I read in a STRUCTURE file?

boot_1 <-
  read.structure(
    “snps.str",
    onerowperind = TRUE,
    n.ind = 16,
    n.loc = 2468,
    ask = FALSE,
    quiet = TRUE
  )

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20180901/6d387bb2/attachment.html>


More information about the adegenet-forum mailing list