View source: R/parsimonyNumber.R
merge_complementary_vectors | R Documentation |
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.
merge_complementary_vectors(comb, mat)
comb |
vector giving the rows to be kept. |
mat |
matrix containing the vectors as rows. |
The vectors are selected from the entry matrix by comb. At each entry, the vectors
are added using function add_complementary
.
row vector of the same size as entry matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.