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_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_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 mapping:
autographr()
,
autographs()
,
autographt()
,
configuration_layouts
,
partition_layouts
,
properties
Examples
node_attribute(ison_lotr, "Race")
node_names(ison_southern_women)
node_mode(ison_southern_women)
tie_attribute(ison_algebra, "task_tie")
tie_weights(to_mode1(ison_southern_women))
tie_signs(ison_marvel_relationships)