Rev Language Reference


combineCharacter - 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.

Return Type

Example

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