Rev Language Reference


concatenate - Concatenate character matrices

Creates a new data matrix by concatentating the provided data matrices (by order).

Usage

Arguments

a : AbstractHomologousDiscreteCharacterData (pass by const reference)
First character data object.
b : AbstractHomologousDiscreteCharacterData (pass by const reference)
Second character data object.
... : AbstractHomologousDiscreteCharacterData (pass by const reference)
Additional character data objects.
merge : String (pass by value)
How to merge differing taxa
Default : Taxa must match
Options : union|intersection

Return Type

Example

# read in character data for locus_1
locus_1 = readDiscreteCharacterData("locus_1.nex")
# read in character data for locus_2
locus_2 = readDiscreteCharacterData("locus_2.nex")
# create concated locus for 1+2 (union of taxa)
locus_1_and_2 = concatenate( locus_1, locus_2 )