Description Usage Arguments See Also Examples
Calculates path length as defined in Flament (1963). That is, sums the
values of each edge in the path, if all edges exist. Otherwise, returns NA
.
1 | flament_path_length(sociomatrix, path)
|
sociomatrix |
a nonnegative, real valued sociomatrix. |
path |
an integer vector of node indices from |
1 2 3 4 5 | ## Calculate Flament's Path Length along a path in a sociomatrix
flament_path_length(YangKnoke01, path = c(1,2,5))
## This path doesn't exist
flament_path_length(YangKnoke01, path = c(1,2,4,5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.