R/recode.time.block.r

#' @title recode.time.block
#' @description unknown
#' @family abysmally documented
#' @author  unknown, \email{<unknown>@@dfo-mpo.gc.ca}
#' @export
  recode.time.block = function ( X=NULL, type="annual" ) {
    if (type=="annual") w = X$yr
    if (type=="monthly") w = X$month
    if (type=="fiveyear") w = floor( X$yr / 5 ) * 5
    if (type=="all") w = 3000
    return(w)
  }
  
AtlanticR/bio.utilities documentation built on June 21, 2020, 7:43 p.m.