predict_age | R Documentation |
Given fish length, predict age from empirical age group propotions.
predict_age(l, alk)
l |
Fish length |
alk |
An alk-tibble with cum age group props by length |
For a single fish at a time, used inside a 'purrr::map_dbl'-call
Stochastic age
## Not run: fishData %>% filter(!is.na(a)) -> alk_data alk <- make_alk(alk_data) set.sed(2345) predict_age(15,alk) predict_age(15,alk) set.seed(2345) predict_age(15,alk) purrr::map_dbl(9:19,predict_age,alk=alk) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.