R/filter.size.r

Defines functions filter.size

  filter.size = function( x, size, index=T ) {
    i = which( is.finite(x) & (x >= size[1] ) & (x < size[2]) )
    if (index) return(i) else return(x[i,])
  }
jae0/bio.snowcrab documentation built on Nov. 6, 2024, 10:10 p.m.