add_complementary: Add several entries, when only one is not NA.

View source: R/parsimonyNumber.R

add_complementaryR Documentation

Add several entries, when only one is not NA.

Description

add_complementary return the only non NA value of a given vector.

Usage

add_complementary(z)

Arguments

z

a vector containing at most only one non-NA value.

Details

This function is used in function merge_complementary_vectors

Value

row vector of the same size as entry matrix.


PhylogeneticEM documentation built on June 22, 2024, 6:46 p.m.