Learn R Programming

mpMap2 (version 1.0.4)

+,mpcrossMapped,mpcrossMapped-method: Combine mpcross objects

Description

Combine two mpcross objects into a single object

Usage

# S4 method for mpcrossMapped,mpcrossMapped
+(e1, e2)

# S4 method for mpcross,mpcross +(e1, e2)

# S4 method for mpcrossRF,mpcrossRF +(e1, e2)

# S4 method for mpcrossRF,mpcross +(e1, e2)

Arguments

e1

An mpcross object

e2

Another mpcross object

Value

A combined object that contains the data from both e1 and e2.

Details

These addition operators combine multiple objects of classes mpcross or mpcrossMapped into a single object. The input objects may contain recombination fraction data, or may have associated genetic maps. The operators try to keep whatever extra data is in the input objects, and will warn if data is discarded. Data will be discarded if, for example, one of the objects contains recombination fraction data and the other does not.

In general, the combined object will contain the input objects as separate experiments. In special cases, the datasets may actually be combined as a single experiment. For example, if the input objects contains disjoint sets of markers, but the same genetic lines, then the datasets will be combined. Similarly, if the input objects contain the same genetic markers, but disjoint sets of genetic lines, then the datasets will be combined.

Internally this function redirects to another generic named addMpMap2, because this generic allows for optional named arguments.