R/max_ctd_depth.R

Defines functions max_ctd_depth

Documented in max_ctd_depth

#' Get max CTD depth
#'
#' Get the maximum level depth from a list of CellTypeDataset objects.
#'
#' @param CTD_list A list of CellTypeDataset objects.
#' 
#' @return integer
#'
#' @keywords internal
max_ctd_depth <- function(CTD_list) {
    max(unlist(lapply(CTD_list, length)))
}
NathanSkene/EWCE documentation built on Nov. 3, 2024, 8:16 a.m.