R/na.cummax.R

#' @rdname impute-noncommutative
#' @export

na.cummax <- function( .x, ... ) 
  na.replace(.x, .na=function(x, ...) cummax(x, ... ) )



#' @rdname impute-noncommutative
#' @export

na.cummin <- function( .x, ... ) 
  na.replace(.x, .na=function(x, ...) cummin(x, ... ) )



# #' @rdname impute-noncommutative
# #' @export
# 
# na.cummean <- function( .x, ... ) 
#   na.replace(.x, .na=function(x, ...) cummean(x, ... ) )


#' @rdname impute-noncommutative
#' @export

na.cumsum <- function( .x, ... ) 
  na.replace(.x, .na=function(x, ...) cumsum(x, ... ) )




#' @rdname impute-noncommutative
#' @export

na.cumprod <- function( .x, ... ) 
  na.replace(.x, .na=function(x, ...) cumprod(x, ... ) )

Try the na.tools package in your browser

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

na.tools documentation built on May 2, 2019, 8:24 a.m.