powered by
Returns the number of line segments in a line segment pattern.
nsegments(x) # S3 method for psp nsegments(x)
# S3 method for psp nsegments(x)
A line segment pattern, i.e. an object of class psp, or an object containing a linear network.
psp
Integer.
This function is generic, with methods for classes psp, linnet and lpp.
linnet
lpp
npoints(), psp.object()
npoints()
psp.object()
# NOT RUN { nsegments(copper$Lines) nsegments(copper$SouthLines) # }
Run the code above in your browser using DataLab