#' Removes columns consisting of only NA
#'
#' Given a dataframe this will remove the columns that contain only NA values.
#'
#' @param df dataframe
#' @export
rm_col_na <- function(df){
df[,colSums(is.na(df)) != nrow(df)]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.