Skip to content
Prev 356 / 29559 Next

Using adehabitat and splancs to achieve point-in-polygon analysis on raster?

Hi Clement,

Hope you had a good time in the field! Is it spring in France?

Thanks for the very helpful reply! I will try it right now! I need to
present at a conference in early April and would like to get these
results before that!

Just three quick questions before you go to enjoy the Easter weekend:

- how do I get the values out of 'jj' (## jj contains the values of
elevation inside the home range of the animals) to calculate mean,
variance, etc, across all the points in 'jj'? I assume 'jj' is of class
'kasc'. In my case it might be 'asc' as I will have only a single home
range at the time (one animal).

- can I get the points out of the 'kasc' object in a way that I can
still run spatial statistics on them? I would like to calculate the
nugget and range for the NDVI values within the home range.

- do you know how to convert a polygon shapefile into the same class as
produced by the command kernelUD? Alternatively I could import a raster
version of the polygon shape file, convert it to the correct format, and
repeat the spatial join method you are suggesting for the home ranges!

Thanks again,

Sander.
Cl?ment Calenge wrote: