MurrayEfford / openCR

Open Population Capture-Recapture
3 stars 0 forks source link

Question about `agebreaks` in `openCR.fit()` #8

Open ramiromagno opened 4 months ago

ramiromagno commented 4 months ago

Hi Murray,

I have a question about this line:

https://github.com/MurrayEfford/openCR/blob/366927414633c83158034bef3e7f63e99922449f/R/openCR.fit.R#L140

Is tail(details$agebreaks,2)[1] meant to be the element before the last of details$agebreaks? Do you assume that the last value is always Inf? As the user can supply details$agebreaks directly, that assumption is not currently safe guarded, or is it?

Thank you in advance.

Cheers

MurrayEfford commented 3 months ago

I'll have to look into this...