Skip to contents

Return the edge leading up to the most recent common ancestor of a set of phylogenetic flows

Usage

pf_mrca(x, name = FALSE, ...)

Arguments

x

A pfc object

name

Should the edge name be returned? If FALSE, the default, the edge number is returned

...

Other arguments passed to or from other methods

Value

A string with the edge name is name = TRUE, or an integer index otherwise

Examples

require(dplyr)
#> Loading required package: dplyr
#> 
#> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’:
#> 
#>     filter, lag
#> The following objects are masked from ‘package:base’:
#> 
#>     intersect, setdiff, setequal, union
avonet %>%
  filter(label %in% c("Platalea_minor", "Pelecanus_occidentalis")) %>%
  pull(phlo) %>%
  pf_mrca()
#> [1] 12692