I use your atm package since a few months now working on SSF analysis. I have a strange issue. For several days now, I have a warning message that I can’t solve.
Here’s the running code:
What it strange is that I haven't changed anything in the code and I'm using the same data set than the previous week and it worked fine before, but since few days I have this warning message:
Warning message:
There were 1007 warnings in mutate().
The first warning was:
In argument: ssf = lapply(...).
Caused by warning in dgamma():
! Production of NaN
After testing line by line, the problem comes when I use random_sample().
Do you have any idea how I can correct this problem?
I use your atm package since a few months now working on SSF analysis. I have a strange issue. For several days now, I have a warning message that I can’t solve. Here’s the running code:
dat_ssf <- dat_all %>% mutate(ssf=lapply(trk, function(x){x %>% amt:: track_resample(rate = hours(168), tolerance = hours(24))%>% amt:: filter_min_n_burst(min_n=5) %>% amt:: steps_by_burst() %>% amt:: random_steps(n_control=5) %>% amt:: extract_covariates(renec_hs_m) }))
What it strange is that I haven't changed anything in the code and I'm using the same data set than the previous week and it worked fine before, but since few days I have this warning message:
Warning message: There were 1007 warnings in
mutate()
. The first warning was: In argument:ssf = lapply(...)
. Caused by warning indgamma()
: ! Production of NaNAfter testing line by line, the problem comes when I use random_sample(). Do you have any idea how I can correct this problem?
Thank you a lot,
Alice