R: Compute the vector of shifts.

shifts.list_to_vector {PhylogeneticEM} | R Documentation

## Compute the vector of shifts.

### Description

`shifts.list_to_vector` takes the list description of the shifts to give the vectorial representation of the shifts : the b th element of the vector has the value of the shift occurring on that branch b.

### Usage

    shifts.list_to_vector(phy, shifts)

### Arguments

`phy` | Input tree.
`shifts` | : list description of the shifts : shifts$edges, shifts$values

### Value

Vector of length nbranch.

### See Also

`shifts.vector_to_list`

[Package PhylogeneticEM version 1.1.0 Index]