#' @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] ) )
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.