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.


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.