eco.merge: Merging two ecogen objects. Ordering the rows of an ecogen...

Description Usage Arguments Details Author(s) Examples

Description

Merging two ecogen objects. Ordering the rows of an ecogen object according to the rows of another

Usage

1
eco.merge(e1, e2, ...)

Arguments

e1

Object of class "ecogen".

e2

Object of class "ecogen".

...

Data frames to merge. Could be any combination of the following: "XY",P","G","E" and "C", or "ALL". If a "G" data frame is provided, the program generates also the INT slot by coding the missing data as "0".

Details

This program generates an ecogen object by binding the columns of the individuals that have matching row names in the objects e1 and e2. If the objects have different number of rows, the result is a merged data frame with the rows in the order of the first object. If the objects have the same number of rows, but in a different order, the product is an object with the rows ordered as the first object. The algorithm matches sequentially the data frame pairs of each slot that the user wishes to merge.

Author(s)

Leandro Roser learoser@gmail.com

Examples

1
2
3
4
5
6
7
8
## Not run: 
data(eco.test)
eco
eco1 <- eco[2:20]
merged <- eco.merge(eco, eco1)
merged

## End(Not run)

EcoGenetics documentation built on July 8, 2020, 5:46 p.m.