as.data.frame.Network: Convert network to data frame.

View source: R/asDataFrameNetwork.R

as.data.frame.NetworkR Documentation

Convert network to data frame.

Description

Convert network to data frame.

Usage

## S3 method for class 'Network'
as.data.frame(
  x,
  row.names = NULL,
  optional = FALSE,
  include.extras = TRUE,
  ...
)

Arguments

x

[Network]
Network.

row.names

[character]
Row names for the result. Default is NULL.

optional

[any]
Currently not used.

include.extras

[logical(1)]
Include additional information like cluster membership and node type as specific columns? Default is TRUE.

...

[any]
Currently not used.

Value

[data.frame]

Note

If the instance contains of n depots, the depot coordinates fill the first n rows of the data frame.


jakobbossek/netgen documentation built on Feb. 11, 2024, 1:02 a.m.