nsegments

0th

Percentile

Number of Line Segments in a Line Segment Pattern

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

Keywords
manip, spatial
Usage
nsegments(x)

# S3 method for psp nsegments(x)

Arguments
x

A line segment pattern, i.e. an object of class psp, or an object containing a linear network.

Details

This function is generic, with methods for classes psp, linnet and lpp.

Value

Integer.

See Also

npoints(), psp.object()

Aliases
  • nsegments
  • nsegments.psp
Examples
# NOT RUN {
nsegments(copper$Lines)
nsegments(copper$SouthLines)
# }
Documentation reproduced from package spatstat, version 1.55-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.