R/list_to_df.R

Defines functions .list_to_df

#' @rdname .list_to_df

.list_to_df <- function(x){
	ncols <- length(dimnames(x[[1]])[[2]])
  	z <- data.frame(matrix(unlist(x), ncol = ncols, byrow = T))
	names(z) <- dimnames(x[[1]])[[2]]
	z
}
cbrown5/BenthicLatent documentation built on Oct. 4, 2019, 6:40 p.m.