View source: R/network_matrix.R
network_matrix | R Documentation |
This function is aimed at calculating network statistics of the neighborhood
network of each cell. The output is a network statistics matrix.
network_matrix( coordinate, index, radius = NULL, NN = NULL, edge, fun = centralities, length_output = 30, name_output = NULL )
coordinate |
a data frame containing cell indices and x and y coordinates which are labeled as index, x_center and y_center, respectively. |
radius |
the maximal radius length of a neighborhood. The cells whose distance to the center cell is larger than this length are not |
NN |
the number of nearest neighbors. If not NULL, only the nearest NN cells will be included in neighborhood. |
edge |
the maximal length of the network edge. |
fun |
the function which calculates the statistics of a network. |
length_output |
the number of statistics calculated in the argument fun. |
name_output |
the names of statistics calculated in the argument fun. |
a network statistics matrix, each rows of it representing network statistics of the neighborhood network of a single cell.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.