R/whichBinSplit.R

Defines functions whichBinSplit

Documented in whichBinSplit

#' Internal function - id which bin in binList split
#' @param grp split bin
#' @param binList list of bins
#' @return index where binList[[ix]] contains grp
whichBinSplit <- function(grp,binList){
  return(which(sapply(binList,FUN=function(atm,g) all(g %in% atm) & all(atm %in% g),g=unlist(grp),simplify=T)))
}
reptalex/phylofactor documentation built on Dec. 29, 2019, 1:31 a.m.