Learn R Programming

spatstat (version 1.31-3)

nsegments: 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.

Value

  • Integer.

Details

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

See Also

npoints(), psp.object()

Examples

Run this code
data(copper)
nsegments(copper$Lines)
nsegments(copper$SouthLines)

Run the code above in your browser using DataLab