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 Aug. 31, 2022, 9:16 a.m.