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

add_complementary {PhylogeneticEM} | R 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.

[Package PhylogeneticEM version 1.1.0 Index]