0
我想知道类Spatialpolygons的对象与类Polygons的对象有什么样的信息。我在哪里可以找到spatstat中类对象的定义
我想知道类Spatialpolygons的对象与类Polygons的对象有什么样的信息。我在哪里可以找到spatstat中类对象的定义
如果您Polygon
或SpatialPolygons
打开帮助页面(其实并不重要,它会引导你到相同的页面),您可以点击SpatialPolygons-class
和Polygons-class
链接。在那里,你可以看到每个类包含哪些插槽。
Polygon-class
为例:
Slots
ringDir:
Object of class "integer"; the ring direction of the ring (polygon) coordinates, holes are expected to be anti-clockwise
labpt:
Object of class "numeric"; an x, y coordinate pair forming the label point of the polygon
area:
Object of class "numeric"; the area of the polygon
hole:
Object of class "logical"; does the polygon seem to be a hole
coords:
Object of class "matrix"; coordinates of the polygon; first point should equal the last point
任何原因,你不能读取源代码? – 2010-01-04 20:04:11
你有没有试过用str()命令调查两者? – Shane 2010-01-04 20:38:19