[R-sig-Geo] API documentation?

Virgilio Gomez-Rubio v.gomezrubio at imperial.ac.uk
Mon Jun 30 19:24:34 CEST 2008


Dear David,

Probably the best way to start is by checking the HTML documentation. It
should be installed locally but it is also accesible, for example, here:

http://finzi.psych.upenn.edu/R/library/sp/html/00Index.html

Hope this helps.

Virgilio

On Mon, 2008-06-30 at 18:48 +0200, David Hugh-Jones wrote:
> Thanks David for his comment about dp.
> 
> Quick question: is there any reasonably comprehensible API
> documentation for the "sp" package? I have just spent about an hour
> trying to get a list of points from a SpatialPolygons object. I
> eventually just printed everything out and found the data by hand, so
> now I am doing:
> 
> coords <- myobject at polygons[[1]]@Polygons[[1]]@coords
> 
> but I don't assume that is right. Surely there must be some simple way
> to get a list of x and y coords out of any object?
> 
> in frustration,
> David Hugh-Jones
> PhD Candidate
> Essex University Department of Government
> http://davidhughjones.googlepages.com
> 
> 
> 2008/6/30 David PINAUD <pinaud at cebc.cnrs.fr>:
> > maybe you can try the function dp() in the package "shapefiles", which is an
> > implementation of the Douglas-Peucker polyLine simplification algorithm.
> > Hope it helps
> > David
> >
> > David Hugh-Jones a écrit :
> >>
> >> Hi all
> >>
> >> I have a big dataset of points and am doing stuff on them that takes a
> >> lot of time. To speed it up, I would like to use "thinlines" from
> >> RArcinfo, which basically makes the maps "rougher" by throwing away
> >> points. Is there an equivalent function for SpatialPolygon type
> >> objects? (I assume that there's no way to convert _to_ Arcinfo, though
> >> I know it's possible to read from it).
> >>
> >> Cheers
> >>
> >> David Hugh-Jones
> >> PhD Candidate
> >> Essex University Department of Government
> >> http://davidhughjones.googlepages.com
> >>
> >> _______________________________________________
> >> R-sig-Geo mailing list
> >> R-sig-Geo at stat.math.ethz.ch
> >> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> >>
> >>
> >>
> >>
> >
> > --
> > ***************************************************
> > David PINAUD
> > Ingénieur de Recherche "Analyses spatiales"
> >
> > Centre d'Etudes Biologiques de Chizé - CNRS UPR1934
> > 79360 Villiers-en-Bois, France poste 485
> > Tel: +33 (0)5.49.09.35.58
> > Fax: +33 (0)5.49.09.65.26
> > http://www.cebc.cnrs.fr/
> >
> > ***************************************************
> >
> >
> >
> >
> > ________ Information from NOD32 ________
> > This message was checked by NOD32 Antivirus System for Linux Mail Servers.
> > http://www.eset.com
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo




More information about the R-sig-Geo mailing list