attributes {manynet}R Documentation

Describing attributes of nodes or ties in a network

Description

These functions extract certain attributes from network data:

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:

  • matrix (adjacency or incidence) from {base} R

  • edgelist, a data frame from {base} R or tibble from {tibble}

  • igraph, from the {igraph} package

  • network, from the {network} package

  • tbl_graph, from the {tidygraph} package

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)

[Package manynet version 0.4.4 Index]