#' Drop columns that contain only missing values
#'
#' @param x A data.frame
#' @export dropNAs
dropNAs <- function(x, missing = NA){
fun <- function(X){
all(is.na(X))
}
res <- sapply(x, fun)
x[, !res]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.