R/na.remove.R

Defines functions na.remove

#Input: Data frame with NA values
#output: Data frame with NA values removed

#' Remove NA Values
#' 
#' @param x A data frame
#' @return Data frame with no NA values
#' @export
na.remove <- function(x){
  product <- x %>% 
    filter(!is.na(x))
  if (is.data.frame(product) == FALSE){
    return("ERROR - not a dataframe")
  }
  return(product)
}
shawn-pladas/R_package_Pladas documentation built on Dec. 23, 2021, 1:21 a.m.