R/procomp.R

Defines functions procomp

Documented in procomp

procomp <-
function(a, uage)
{
  #"a" is a data set with fecundity and survival of individuals with
  #known age
  cbind(uage, tapply(a$recruits, a$age, mean, na.rm = TRUE), tapply(a$survival,
                                                                    a$age, mean, na.rm = TRUE))
}

Try the lmf package in your browser

Any scripts or data that you put into this service are public.

lmf documentation built on June 24, 2022, 5:06 p.m.