R/flatten.R

Defines functions flatten

Documented in flatten

#' flatten a list of nested list
#' 
#' flatten a list of nested list
#'
#' @param x a list of nested list
#' @source https://stackoverflow.com/questions/16300344
#' @export
flatten <- function(x) do.call(c, unlist(x, recursive = FALSE))
lbraglia/lbmisc documentation built on April 29, 2024, 11:27 a.m.