Description Usage Arguments Details Value Examples
View source: R/create_matrices.R
Updates a affiliation network stored in sparse format with new data of an ego-centric network
1 2 3 4 5 6 7 8 | update_affiliation(
aff_mat,
x,
lookup = NULL,
update_diag = FALSE,
normalize = FALSE,
verbose = FALSE
)
|
aff_mat |
the affiliation network to be updated; must be a |
x |
a vector containing the (group) names to which the new individual is affiliated to (if |
lookup |
optional lookup table. If |
update_diag |
boolean; if |
normalize |
boolean; if |
verbose |
boolean; if |
Given the affiliation matrix aff_mat
, the function takes new data on a set of affiliations connected to the same unit and updates the affiliations accordingly. If x
contains the indices 1,6,12
, for example, the affiliation network is updated by adding one count to the entries (1, 6), (6, 1), (1, 12), (12, 1), (6, 12), (12, 6)
.
updates aff_mat
by adding counts to it based on the information provided in x
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.