Closed damianooldoni closed 4 years ago
Tested with taxon keys: 1031400. But even with other taxa I get similar problems.
I think this issue is quite outdated. Feel free to close it, if you think the same about it.
Indeed. The problem is fixed now. Added round(x, 0) to avoid decimals in the year
In basic GAM functions, I don't see argument
newdata
inderivatives()
:Such argument is present in GAM functions where observations/occupancy of native species is used as covariate:
I notice that without
newdata
I don't get derivatives values for last year (2017), but two values in the middle (2013). After evaluating emergency status based on 1st and 2nd derivatives, doingbind_cols
, we attach the emergency status back to original data, so that the 2ndem
value of 2013 is given to 2014, theem
value of 2014 is assigned to 2015 etc. Usingnewdata
this doesn't happen, but I wonder if this just "covers" an underlying issue, i.e. missing values at the end of the time series. I need your help to understand this. Thanks.