R/common.R

#' Remove columns containing only NA in all data frame of a list of data frame.
#'
#' @param l: a list of data frame
#'
#' @return a list of data frame
#'
#' @noRd
simplify_table_list <- function(l) {
	res <- lapply(l,
								function(table) {
									table[!unlist(vapply(table, function(col)
										all(is.na(col)), logical(1)))]
								})
	return(res)
}

Try the interlineaR package in your browser

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

interlineaR documentation built on May 1, 2019, 7:29 p.m.