as.linnet.gn | R Documentation |
as.linnet.gn
is a method for the generic function
as.linnet
which transmutes a geometric network
(object of class gn
) to a linear network (object of
class linnet
).
## S3 method for class 'gn' as.linnet(X, ...)
X |
An object of class |
... |
Other arguments. |
A linear network, an object of class linnet
.
Marc Schneble marc.schneble@stat.uni-muenchen.de
library(spatstat.data) library(spatstat.linnet) x <- as.linnet(small_gn) plot(x) L <- simplenet X <- as_gn(L, spatstat = TRUE) x <- as.linnet(X) # TRUE all.equal(x, L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.