R/reverseSplit.R

#' reverseSpit: a function for formatting.
#'
#' @param inList input for formatting.
#' @import paramlink
#' @import graphics
#' @export
#' @return A bayesian network.

reverseSplit<-function (inList) {
    if (length(inList) == 0) {
        return(inList)
    }
    lens = sapply(inList, length)
    nms = rep(names(inList), lens)
    vals = unlist(inList)
    split(nms, vals)
}

Try the fbnet package in your browser

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

fbnet documentation built on July 9, 2023, 6:24 p.m.