as_gn: Transmute to Geometric Network

View source: R/as.R

as_gnR Documentation

Transmute to Geometric Network

Description

as_gn transmutes an existing object into a geometric network, an object of class gn.

Usage

as_gn(x, ...)

## S3 method for class 'linnet'
as_gn(x, ..., spatstat = FALSE)

## S3 method for class 'gnpp'
as_gn(x, ...)

## S3 method for class 'gnppfit'
as_gn(x, ...)

## S3 method for class 'lpp'
as_gn(x, ..., spatstat = FALSE)

## S3 method for class 'lppfit'
as_gn(x, ...)

Arguments

x

An object that could reasonably be transmuted to an object of class gn.

...

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.

Value

An object of class gn.

Author(s)

Marc Schneble marc.schneble@stat.uni-muenchen.de

Examples

library(spatstat.data)
G <- as_gn(simplenet)
summary(G)

geonet documentation built on July 11, 2022, 9:08 a.m.