где я могу найти определение объектов класса в spatstat - PullRequest
0 голосов
/ 04 января 2010

Я хотел бы знать, какую информацию имеет объект класса Spatialpolygons по сравнению с объектом класса Polygons.

1 Ответ

2 голосов
/ 06 октября 2010

Если вы открываете справочные страницы для 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 
...