merge_complementary_vectors {PhylogeneticEM} | R Documentation |
Merge several complementary vectors into one.
Description
merge_complementary_vectors
take several vectors with complementary entries
(i.e, vector of same length, that are such that only one vector has a non NA value
for each entry), and merge them into one.
Usage
merge_complementary_vectors(comb, mat)
Arguments
comb |
vector giving the rows to be kept. |
mat |
matrix containing the vectors as rows. |
Details
The vectors are selected from the entry matrix by comb. At each entry, the vectors
are added using function add_complementary
.
Value
row vector of the same size as entry matrix.
[Package PhylogeneticEM version 1.7.0 Index]