Learn R Programming

AlphaSimR (version 0.10.0)

Pop-class: Population

Description

Extends RawPop-class to add gender, genetic values, phenotypes, and pedigrees.

Usage

# S4 method for Pop
[(x, i)

# S4 method for Pop c(x, ...)

Arguments

x

a 'Pop'

i

index of individuals

...

additional 'Pop' objects

Methods (by generic)

  • [: Extract Pop by index or id

  • c: Combine multiple Pops

Slots

id

an individual's identifier

mother

the identifier of the individual's mother

father

the identifier of the individual's father

gender

gender of individuals

nTraits

number of traits

gv

matrix of genetic values. When using GxE traits, gv reflects gv when w=0. Dimensions are nInd by nTraits.

pheno

matrix of phenotypic values. Dimensions are nInd by nTraits.

ebv

matrix of estimated breeding values. Dimensions are nInd rows and a variable number of columns.

gxe

list containing GxE slopes for GxE traits

fixEff

a fixed effect relating to the phenotype. Used by genomic selection models but otherwise ignored.

reps

the number of replications used to measure the phenotype. Used by genomic selection models, but otherwise ignored.