R/which.quantile.r

Defines functions which.quantile

Documented in which.quantile

#' @title which.quantile
#' @description unknown
#' @family abysmally documented
#' @author  unknown, \email{<unknown>@@dfo-mpo.gc.ca}
#' @export
  which.quantile = function( x, probs, inside=TRUE ) {
    qnts = quantile( x, probs=probs, na.rm=TRUE ) 
    
    if ( inside ) {
      return( which(x < qnts[2]  & x > qnts[1] ) )
    } else {
      return( which(x > qnts[2]  | x < qnts[1] ) )
    }
  }
AtlanticR/bio.utilities documentation built on June 21, 2020, 7:43 p.m.