Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nobjects

Count Number of Geometrical Objects in a Spatial Dataset


Description

A generic function to count the number of geometrical objects in a spatial dataset.

Usage

nobjects(x)

  ## S3 method for class 'ppp'
nobjects(x)

  ## S3 method for class 'ppx'
nobjects(x)

  ## S3 method for class 'psp'
nobjects(x)

  ## S3 method for class 'tess'
nobjects(x)

Arguments

x

A dataset.

Details

The generic function nobjects counts the number of geometrical objects in the spatial dataset x.

The methods for point patterns (classes "ppp" and "ppx", embracing "pp3" and "lpp") count the number of points in the pattern.

The method for line segment patterns (class "psp") counts the number of line segments in the pattern.

The method for tessellations (class "tess") counts the number of tiles of the tessellation.

Value

A single integer.

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk

See Also

Examples

nobjects(redwood)
   nobjects(edges(letterR))
   nobjects(dirichlet(cells))

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.