R/empirical.ranges.r

Defines functions empirical.ranges

  empirical.ranges = function( db="snowcrab", var, remove.zeros=F, probs=c(0.025, 0.975) ) {
    if (db =="snowcrab") {
      x = snowcrab.db("set.complete")[, var]  
      if (remove.zeros) x = x[ which( x>0 ) ]
      return ( quantile( x, probs=probs, na.rm=T ) )
    }    
  }
jae0/bio.snowcrab documentation built on Nov. 6, 2024, 10:10 p.m.