restore_names {memnet} | R Documentation |
Function replaces the index vectors created by get_adjlist fluency, or search_rw by their original names.
restore_names(dat, names)
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. |
lists of character vectors.
# 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))