R/get_most_left_leaf.R

Defines functions get_most_left_leaf

Documented in get_most_left_leaf

#'Get the most left leaf object from a dendrogram
#'
#'This function returns the most left leaf object.
#'
#'
#' @param d dendrogram class object
#' @export get_most_left_leaf
#' @aliases get_most_left_leaf
#' @return the most left leaf object
#' @keywords internal
#' 

get_most_left_leaf <- function(d){
  left = d[[1]]
  if(!is.leaf(left)){
    left = get_most_left_leaf(left)
  }
  left
}

Try the gapmap package in your browser

Any scripts or data that you put into this service are public.

gapmap documentation built on April 19, 2021, 5:06 p.m.