R/roundFish.r

Defines functions roundFish

Documented in roundFish

##' Roudn to the nearest x cam
##' @param x vector
##' @param cm to which to round
##' @rdname roundFish
##' @export
roundFish <- function(x,cm){
    if(missing(cm))stop('cm?')
    cm*round(x/cm) 
}
iml-assess/catchR documentation built on Nov. 27, 2022, 7:35 p.m.