View source: R/existing_igraph.R
existing_params | R Documentation |
Given an existing igraph object, add attributes for the frame population and for the hidden population.
existing_params(params)
params |
the parameters |
The params
vector should have at least three entries:
groups
is a vector that has a list of attributes that
each node in the igraph
object g
has. These attributes
should all have values of 0/1 or TRUE/FALSE.
gps.in.F
is a vector that has a list of group names; nodes in
those groups are taken to be in the frame population
gps.in.H
is a vector that has a list of group names; nodes in
those groups are taken to be in the hidden population
'
an object with the parameters
my_params <- existing_params(list(group.names=c('a', 'b', 'c', 'd'),
gps.in.F=c('b', 'c'),
gps.in.H=c('a', 'b')))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.