Skip to contents

Returns the end edge of each phylogenetic flow as a two-column tibble with start and end columns

Usage

pf_ends(x, return_names = TRUE)

Arguments

x

A pfc object

return_names

If TRUE, return the start and end node names. If FALSE, return their indexes.

Value

A tibble with start and end nodes

Examples

pf_ends(rpfc(100))
#> # A tibble: 198 × 2
#>    start  end  
#>    <chr>  <chr>
#>  1 Node55 t67  
#>  2 Node55 t1   
#>  3 Node70 t25  
#>  4 Node70 t5   
#>  5 Node82 t3   
#>  6 Node82 t57  
#>  7 Node64 t24  
#>  8 Node37 t4   
#>  9 Node56 t86  
#> 10 Node56 t52  
#> # ℹ 188 more rows