as_gnpp: Transmute to Point Pattern on a Geometric Network
Description
as_gnpp
transmutes an existing object into a point pattern on a geometric
network, an object of class gnpp
.
Usage
as_gnpp(x, ...)# S3 method for gnppfit
as_gnpp(x, ...)
# S3 method for lpp
as_gnpp(x, ..., spatstat = FALSE)
Value
An object of class gnpp
.
Arguments
- x
An object that could reasonably transmuted to an object of class
gnpp
.
- ...
Other arguments.
- spatstat
Set to TRUE
if retransformation to an object of any
spatstat
class is desired. Some elements of these objects (such as
the window) are otherwise discarded when being transmuted to an object of
class gn
.
Examples
Run this codelibrary(spatstat.data)
X <- as_gnpp(chicago)
summary(X)
Run the code above in your browser using DataLab