View source: R/window_functions_graph.R
This function will estimate the weights of node based on their first and last observation and the time within a given window (e.g., due to births or deaths), and calculate the weighted average network value.
1 | weighted_mean(obs.values, inOut, net)
|
obs.values |
Vector of node level network measures, with column names for each individual measure. |
inOut |
A dataframe with names in the first column, in a second column the dates these individuals first entered the network, and in a third column the dates these individuals left the network. |
net |
The network used to calculate the weighted mean. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.