Learn R Programming

AlphaSimR (version 0.10.0)

SimParam_removeTrait: Remove trait

Description

Removes designated trait(s).

Arguments

traits

a vector of traits to remove

force

should the check for a running simulation be ignored. Only set to TRUE if you know what you are doing.

Usage

SP$removeTrait(traits, force = FALSE)

Examples

Run this code
# NOT RUN {
#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)

#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addTraitA(10)
SP$nTraits
SP$removeTrait(1)
SP$nTraits


# }

Run the code above in your browser using DataLab