Fit activity model - invalid times argument

24 views
Skip to first unread message

Sonja Heiliger

unread,
Nov 21, 2024, 7:59:10 AM11/21/24
to agouti-users
Hi everyone,
I am a collaborator of Enetwild and I am trying to estimate wild boar densities. However when trying to fit the rem model, I receive the error 
"Error in rep(1:nrow(obs), obs$count) : invalid 'times' argument"
I figured that the error stems from the activity model component.

I have already done the estimation for roe deer without problems, so there shouldn't be a problem with the data package itself but perhaps with some value in the wild boar observations? How could I troubleshoot?

Thank you for your help!
Sonja

Marcus Rowcliffe

unread,
Jan 21, 2025, 5:05:23 AMJan 21
to agouti-users
Sonja
I'm sorry I've only just spotted this. I think this is probably due to missing count values in the observations data. Filter the observations for Sus scrofa and look for any that don't have a value. If you add counts to these (ideally in Agouti with re-export) I think it should work.
All best
Marcus

Reply all
Reply to author
Forward
0 new messages