[R-sig-Geo] Replacement for old overlay() function in package sp
Rainer M Krug
Rainer at krugs.de
Fri Jan 8 11:39:38 CET 2016
Hi
I have an old script which uses the overlay() function of the package
sp. I saw that it was removed in commit 1678, but can I safely replace
it with the function over()?
It was used as follow:
--8<---------------cut here---------------start------------->8---
sp <- readShapePoly(...)
grd <- readRAST(...)
grd[[2]] <- overlay(grd, sp)
--8<---------------cut here---------------end--------------->8---
Thanks,
Rainer
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer at krugs.de
Skype: RMkrug
PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 454 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20160108/ac43a6b8/attachment.bin>
More information about the R-sig-Geo
mailing list