R/has_children.R

Defines functions has.children

Documented in has.children

#' has.children
#'
#' For internal use only.
#' Determines if a node in the Partition tree has a child.
#'
#' @param part Node in partition Tree.
#'
#' @return Logical determining if the node has any children.
#'
has.children <- function(part){
  # Would rather not have this one exported to the package.
  class(part[[1]]) == 'list'
}

Try the SK4FGA package in your browser

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

SK4FGA documentation built on Feb. 16, 2023, 9:06 p.m.