R/which.quantile.r

Defines functions which.quantile

  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] ) )
    }
  }
jae0/netmensuration documentation built on Jan. 11, 2024, 3:35 a.m.