R/raisingTop.R

#' Returns true if given column c exceeds previous column of same type (this is always column c-2)
#'
#' @param redData Data to consider
#' @param column Column to consider
raisingTop <- function(redData,column) {
  # if (column-2>=1) # old version
  if (column>=3) # new, optimized version
    return (maxBox(redData,column)>maxBox(redData,column-2))
  else
    return (FALSE)
}

Try the rpnf package in your browser

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

rpnf documentation built on May 2, 2019, 5:49 p.m.