You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"terra" does not define a weighted.mean<SpatRaster,missing> method and the enigmatic error message you get with weighted.mean(z, na.rm = TRUE) comes from stats::weighted.mean. I think we can live with that.
Setup:
It's ok to use numeric weights if
na.rm
is not supplied:Without the weights, but with
na.rm = TRUE
, there's an error:The combination is deadly:
Created on 2022-08-23 by the reprex package (v2.0.1)
Session info
The text was updated successfully, but these errors were encountered: