Learn R Programming

AlphaSimR (version 2.0.0)

getResponse: Returns a vector response from a population

Description

Returns a vector response from a population

Usage

getResponse(pop, trait, use, simParam = NULL, ...)

Arguments

pop

an object of class Pop or HybirdPop

trait

a vector or custom function

use

a character ("rand", "gv", "ebv", "pheno", or "bv"; note that "bv" doesn't work on class HybridPop)

simParam

simulation parameters are only used when use="bv"

...

are additional arguments passed to trait when trait is a function