nsegments {spatstat}R Documentation

Number of Line Segments in a Line Segment Pattern

Description

Returns the number of line segments in a line segment pattern.

Usage

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

Arguments

x

A line segment pattern, i.e. an object of class psp.

Details

This function is generic, but there is at present only one method, that for class psp.

Value

Integer.

Author(s)

Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz

See Also

npoints(), psp.object()

Examples

data(copper)
nsegments(copper$Lines)
nsegments(copper$SouthLines)

[Package spatstat version 1.25-3 Index]