measure_attributes: Describing attributes of nodes or ties in a network

measure_attributesR 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:

  • 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 measures: measure_central_between, measure_central_close, measure_central_degree, measure_central_eigen, measure_closure, measure_cohesion, measure_diffusion_infection, measure_diffusion_net, measure_diffusion_node, measure_features, measure_heterogeneity, measure_hierarchy, measure_holes, measure_periods, measure_properties, member_diffusion

Examples

node_attribute(fict_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)

manynet documentation built on June 23, 2025, 9:07 a.m.