View source: R/grid2edgelist.R
grid2edgelist | R Documentation |
This function is used to get the edgelist of a network from coordinates of cells.
A network is built according to the coordinates of cells.
Edges will be generated between the nodes whose distance is smaller than or equal to the given length.
This function is used in the function build_network
grid2edgelist(grid, edge)
grid |
the coordinates of cells. It includes at least three columns, x_center, y_center, and id. |
edge |
the maximal length of an edge in the network. |
The output is an edgelist of this network.
an edgelist of a network generated from coordinates of cells using the given maximal edge length.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.