R/na.cummax.R

Defines functions na.cummax na.cummin na.cumsum na.cumprod

Documented in na.cummax na.cummin na.cumprod na.cumsum

#' @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, ... ) )
decisionpatterns/na.tools documentation built on May 25, 2019, 4:23 p.m.