powered by
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).
as.linnet.gn
as.linnet
gn
linnet
# S3 method for gn as.linnet(X, ...)
A linear network, an object of class linnet.
An object of class gn.
Other arguments.
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)
Run the code above in your browser using DataLab