Learn R Programming

spatstat (version 1.56-1)

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 psp nsegments(x)

Arguments

x

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

Value

Integer.

Details

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

See Also

npoints(), psp.object()

Examples

Run this code
# NOT RUN {
nsegments(copper$Lines)
nsegments(copper$SouthLines)
# }

Run the code above in your browser using DataLab