maptools packages : shp2SLDF (R-Grass)
On Mon, 29 May 2006, massimosisasha wrote:
hi, i'm tring to do the various example on : http://skagit.meas.ncsu.edu/~helena/publwork/GRASSnews_vol3.pdf until to pag.14 i have not problems but at : Using the spgrass6 package with vector data... at the line :
> streams <- shp2SLDF(res, proj4string = p4s)
i've this error message : Errore: non trovo la funzione "shp2SLDF" ??? why ??? i've read the maptools pdf but i have not find the shp2SLDF command :-(
I'm travelling and not able to give an authoritative answer now, but please try maptools function readShapeLines() which if I remember correctly includes the function you mention, but saves the step of first reading the shape object. The GRASS-News note was written a year ago, and the sp/maptools/rgdal combination on the R side has developed strongly. You may also consider readOGR() in rgdal to read shapefiles into appropriate Spatial* objects. Roger
can you hel me ? thanks! Massimo. [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
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