measure_attributes {manynet} | R Documentation |
Describing attributes of nodes or ties in a network
Description
These functions extract certain attributes from network data:
-
node_attribute()
returns an attribute's values for the nodes in a network. -
node_names()
returns the names of the nodes in a network. -
node_is_mode()
returns the mode of the nodes in a network. -
tie_attribute()
returns an attribute's values for the ties in a network. -
tie_weights()
returns the weights of the ties in a network. -
tie_signs()
returns the signs of the ties in a network.
These functions are also often used as helpers within other functions.
node_*()
and tie_*()
always return vectors the same length
as the number of nodes or ties in the network, respectively.
Usage
node_attribute(.data, attribute)
node_names(.data)
node_is_mode(.data)
tie_attribute(.data, attribute)
tie_weights(.data)
tie_signs(.data)
Arguments
.data |
An object of a manynet-consistent class:
|
attribute |
Character string naming an attribute in the object. |
See Also
Other measures:
between_centrality
,
close_centrality
,
degree_centrality
,
eigenv_centrality
,
measure_closure
,
measure_cohesion
,
measure_features
,
measure_heterogeneity
,
measure_hierarchy
,
measure_holes
,
measure_infection
,
measure_net_diffusion
,
measure_node_diffusion
,
measure_periods
,
measure_properties
,
member_diffusion
Examples
node_attribute(ison_lotr, "Race")
node_names(ison_southern_women)
node_is_mode(ison_southern_women)
tie_attribute(ison_algebra, "task_tie")
tie_weights(to_mode1(ison_southern_women))
tie_signs(ison_marvel_relationships)