These functions implement logical tests for various network properties. All is_*() functions return a logical scalar (TRUE or FALSE).

  • is_cognitive() marks networks TRUE if they are cognitive social structures, i.e. where the edgelist contains a 'by' column indicating who reported/recorded each tie, in addition to the 'from' and 'to' columns.

is_cognitive(.data)

Arguments

.data

An object of a {manynet}-consistent class:

  • adjacency or incidence matrix from {base} R

  • edgelist data.frame from {base} R or tbl/tbl_df from {tibble}

  • stocnet stocnet, from the {manynet} package

  • igraph igraph, from the {igraph} package

  • network network, from the {network} package

  • tidygraph tbl_graph, from the {tidygraph} package

Examples

is_cognitive(create_filled(3))
#> [1] FALSE