Closed lucas-johnson closed 3 years ago
This example works on for me on the development version, which I am submitting to CRAN this morning. Can you let me know what version you have installed?
packageVersion("exactextractr")
#> [1] '0.5.0'
This is also working as expected for me on version 0.5.0, so I'm not quite sure what's going on. Version 0.6.0 is now on CRAN - could you give that a try?
Version 0.6.0
works! Thank you!
Description
weighted.mean
fails with raster stacks. I followed the example here hoping to extract the mean, but returnNA
if any of of the cells areNA
. Essentially I wanted to use themean
function withna.rm = F
. And I thoughtweighted.mean
was the best way to do that. Unfortunately it doesn't seem to work with raster stacks...Is there a better way to do this?Reprex: