R/range.cap.r

Defines functions range.cap

  range.cap = function( x, r ) {
    x[ which( x < r[1] ) ] = r[1]
    x[ which( x > r[2] ) ] = r[2]
    return(x)
  } 
jae0/bio.snowcrab documentation built on Nov. 6, 2024, 10:10 p.m.