Skip to content

R-sig-Geo Digest, Vol 218, Issue 10

2 messages · Gabriel Cotlier, Babak Naimi

#
Hello Babak,
Thanks. a lot.
Yes, elsa::moran() is indeed faster than raster::Moran() as I saw in your
code; however I have nan values in my raster layer which are rivers of
other geographic features which aren't relevant thus were converted to nan
not to influence the results.
Does there exist a way to make elsa::moran() to work with a raster layer
with nan values?
Thanks a lot again.
Kind regards,
Gabriel
On Thu, Oct 21, 2021 at 1:52 PM Babak Naimi <naimi.b at gmail.com> wrote:

            

  
    
#
Hi, If by nan you mean NA pixels, the pixels with NA would not contribute
to the calculation so would not cause any problem for the calculation.



On Thu, Oct 21, 2021 at 12:44 PM Gabriel Cotlier <gabiklm01 at gmail.com>
wrote: