R: Initialization for the allocation of shifts.

init.allocate_regimes_from_shifts {PhylogeneticEM} | R Documentation

## Initialization for the allocation of shifts.

### Description

`init.allocate_regimes_from_shifts` initialize the vector of regimes at nodes and tips, with the regime (0) at the root.

### Usage

    init.allocate_regimes_from_shifts(phy, ...)

### Arguments

`phy` | Input tree.

### Details

This function is used in function `allocate_regimes_from_shifts` and is designed to furnish function `update.allocate_regimes_from_shifts` with the right structure of data.

### Value

Matrix of size (nNodes + ntaxa)x1 of NAs, with the 0 at the root.

[Package PhylogeneticEM version 1.1.0 Index]