as.linnet.linim

0th

Percentile

Extract Linear Network from Data on a Linear Network

Given some kind of data on a linear network, the command as.linnet extracts the linear network itself.

Keywords
manip, spatial
Usage
## S3 method for class 'linim':
as.linnet(X, \dots)

## S3 method for class 'linfun': as.linnet(X, \dots)

## S3 method for class 'lpp': as.linnet(X, \dots, fatal=TRUE, sparse)

Arguments
X
Data on a linear network. A point pattern (class "lpp"), pixel image (class "linim") or function (class "linfun").
...
Ignored.
fatal
Logical value indicating whether data in the wrong format should lead to an error (fatal=TRUE) or a warning (fatal=FALSE).
sparse
Logical value indicating whether to use a sparse matrix representation, as explained in linnet. Default is to keep the same representation as in X.
Details

These are methods for the generic as.linnet for various classes. The network on which the data are defined is extracted.

Value

  • A linear network (object of class "linnet").

See Also

linnet, methods.linnet.

Aliases
  • as.linnet.lpp
  • as.linnet.linim
  • as.linnet.linfun
Examples
# make some data
  xcoord <- linfun(function(x,y,seg,tp) { x }, simplenet)
  as.linnet(xcoord)
  X <- as.linim(xcoord)
  as.linnet(X)
Documentation reproduced from package spatstat, version 1.42-2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.