locus-operator-plus: Overload '+' operator for pairs of 'locus' objects

+.locusR Documentation

Overload '+' operator for pairs of locus objects

Description

An overload of the + operator for locus objects that results in the creation of an offspring locus.

Usage

## S3 method for class 'locus'
e1 + e2

Arguments

e1

A locus object.

e2

A locus object.

Value

A new locus object that represents an offspring genotype.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples


dad <- locus( c("A", "A") ) 
mom <- locus( c("B", "B") )
off <- mom + dad 
off


dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.