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/bio.snowcrab documentation built on Nov. 6, 2024, 10:10 p.m.