Re: [R] mask and reverse the selection

2012-06-13 Thread Rolf Turner
This question apparently relates to the mask() function from the "raster" package. This should have been made clear. You might find the function complement.owin() in the "spatstat" package helpful. cheers, Rolf Turner On 14/06/12 08:42, Celine wrote: Hi I need some help with th

[R] mask and reverse the selection

2012-06-13 Thread Celine
Hi I need some help with the function mask I have a polygon and I want to extract data for all the world except for the polygon I write this code but it doesn't work, do you have any idea of the problem ? how can I do that ? worldmask=mask(invHS,hotspot,inverse=TRUE) worldmask=mask(invHS,hotspot