Learn R Programming

AlphaSimR (version 2.0.0)

convertTraitsToNames: Convert traits to a vector of names

Description

This function processes the traits arguments from GS models. It usually receives a number indicating the trait, but may also be the trait name itself or a custom function.

Usage

convertTraitsToNames(traits, simParam)

Value

a vector of names for traits

Arguments

traits

the traits argument from a GS model

simParam

the simulation parameters object