R/get_most_right_leaf.R

Defines functions get_most_right_leaf

Documented in get_most_right_leaf

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

get_most_right_leaf <- function(d){
  right = d[[2]]
  if(!is.leaf(right)){
    right = get_most_right_leaf(right)
  }
  right
}
evanbiederstedt/gapmap documentation built on Jan. 29, 2024, 6:31 p.m.