R/get.hist.data.r

Defines functions get.hist.data

    get.hist.data = function(set, det, save=F) {
      dd = det[is.finite(det$cw),]
      hdata = merge(dd, set, by=c("trip", "set"), all.x=T, all.y=F, sort=F)
      if (save) save(hdata, file="hist.Rdata", compress=T)
      return (hdata)
    }
jae0/snowcrab documentation built on Feb. 27, 2024, 2:42 p.m.