methods.linnet

0th

Percentile

Methods for Linear Networks

These are methods for the class "linnet" of linear networks.

Keywords
methods, spatial
Usage
as.linnet(X, ...)
## S3 method for class 'linnet':
as.linnet(X, ...)
## S3 method for class 'lpp':
as.linnet(X, ..., fatal=TRUE)
## S3 method for class 'linnet':
as.owin(W, ...)
## S3 method for class 'linnet':
as.psp(x, ..., fatal=TRUE)
## S3 method for class 'linnet':
print(x, ...)
## S3 method for class 'linnet':
summary(object, ...)
## S3 method for class 'linnet':
unitname(x)
## S3 method for class 'linnet':
unitname(x) <- value
Arguments
x,X,object,W
An object of class "linnet" representing a linear network.
...
Arguments passed to other methods.
value
A valid name for the unit of length for x. See unitname.
fatal
Logical value indicating whether data in the wrong format should lead to an error (fatal=TRUE) or a warning (fatal=FALSE).
Details

The function as.linnet is generic. It converts data from some other format into an object of class "linnet". The method as.linnet.lpp extracts the linear network information from an lpp object. The other functions are methods for the generic commands as.owin, as.psp, print, summary, unitname and unitname<- for the class "linnet".

The method as.owin.linnet extracts the window containing the linear network, and returns it as an object of class "owin". The method as.psp.linnet extracts the lines of the linear network as a line segment pattern (object of class "psp").

Value

  • For as.linnet the value is an object of class "linnet". For other functions, see the help file for the corresponding generic function.

See Also

linnet

Aliases
  • methods.linnet
  • as.linnet
  • as.linnet.linnet
  • as.linnet.lpp
  • as.owin.linnet
  • as.psp.linnet
  • print.linnet
  • summary.linnet
  • unitname.linnet
  • unitname<-.linnet
Examples
data(simplenet)
  simplenet
  summary(simplenet)
  unitname(simplenet) <- c("cubit", "cubits")
Documentation reproduced from package spatstat, version 1.25-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.