View source: R/compute_summaries.R
struct2pegas | R Documentation |
struct
to class loci
This function converts an object of class "struct"
to an object of class "loci"
that can be used by the package pegas
struct2pegas(x)
x |
List of objects of class |
## We first create a random population with 100 individuals and 10 biallelic loci
N <- 100 # Population size
nl <- 10 # Number of additive loci
na <- 2 # Number of alleles per locus
G <- initial.struct(N,nl,na)
## We convert the object of class 'struct' into 'loci'
struct2pegas(list(G))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.