R: Update function for regime allocation.

update.allocate_regimes_from_shifts {PhylogeneticEM} | R Documentation

## Update function for regime allocation.

### Description

`update.allocate_regimes_from_shifts` computes the regime of a daughter node, knowing the regime at the parent node and the vector of shifts positions

### Usage

    update.allocate_regimes_from_shifts(edgeNbr, ancestral, shifts_edges, ...)

### Arguments

`edgeNbr` | : Number of the edge considered
`ancestral` | : regime of the parent node
`shifts_edges` | positions on edges

### Details

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

### Value

regime of the daughter node.

[Package PhylogeneticEM version 1.1.0 Index]