restore_names: Restore names of memnet objects

Description Usage Arguments Value Examples

Description

Function replaces the index vectors created by get_adjlist fluency, or search_rw by their original names.

Usage

1

Arguments

dat

lists of indices that correspond to positions in a name vector or matrix with two initial columns containing node indices.

names

character vector giving the names.

Value

lists of character vectors.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# get fluency data
data(animal_fluency)

# edge list of fluency graph
edge_list = threshold_graph(animal_fluency)

# extract adjlist from community network
adjlist = edg_to_adjlist(edge_list)

f = fluency(adjlist, c(10, 14, 16, 18))
restore_names(f, get_names(edge_list))

memnet documentation built on May 2, 2019, 9:35 a.m.