Dylan Beaudette
2006-Oct-25 18:41 UTC
[R] any good way to convert sp class objects to splancs object
Greetings: are there any simple ways to convert an sp class object to a splancs ppp class object, outside of reading the coordinates and computing a bounding box? cheers, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341
Roger Bivand
2006-Oct-25 19:02 UTC
[R] any good way to convert sp class objects to splancs object
On Wed, 25 Oct 2006, Dylan Beaudette wrote:> Greetings: > > are there any simple ways to convert an sp class object to a splancs ppp > class object, outside of reading the coordinates and computing a > bounding box?Aren't ppp class objects from the spatstat package? Have you tried the spspatstat wrapper package on the R-spatial sourceforge repository? The as() coerce method should get you there. If you really mean splancs, there are not wrappers yet, but are on their way. (Consider posting on R-sig-geo for specific questions like this). Roger> > cheers, >-- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no