struct2pegas: Conversion of class 'struct' to class 'loci'

Description Usage Arguments Examples

View source: R/compute_summaries.R

Description

This function converts an object of class "struct" to an object of class "loci" that can be used by the package pegas

Usage

1

Arguments

x

List of objects of class "struct" with the initial genetic structure of populations.

Examples

1
2
3
4
5
6
7
8
## 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))

eriqande/glads documentation built on April 24, 2020, 11:53 a.m.