R/all_combs.R

Defines functions all_combs

Documented in all_combs

#' Title
#'
#' @param x
#'
#' @return
#' @export
#'
#' @examples
all_combs <- function(x) {

  map(seq_along(x), ~ combn(x, .x, simplify = FALSE)) %>%
    flatten()

}
jaydennord/nordr documentation built on March 2, 2023, 10:48 p.m.