R/helper_na_omit_detailed.R

Defines functions na.omit_detailed.data.frame

Documented in na.omit_detailed.data.frame

#' Extra logging on na.omit handler
#'
#' @param object a data.frame
#'
#' @return a normal \code{omit} object, with the extra attribute \code{why_omit},
#' which contains the leftmost column containing an NA for each row that was dropped, by
#' column name, if any were dropped.
#'
#' @seealso \code{\link{na.omit}}
na.omit_detailed.data.frame <- function(object){

  naomitwhy(object, function(x, w) x[w, , drop=FALSE])

}

Try the estimatr package in your browser

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

estimatr documentation built on May 29, 2024, 7:23 a.m.