node_vector_from_dataframe_unit: node_vector_from_dataframe_unit

Description Usage Arguments Details Value Examples

View source: R/graph_operation.R

Description

Allows to retrieve the list of nodes to give to the igraph constructor from a dataframe.

Usage

1

Arguments

dataframe

data.frame. The dataframe from which the node names must be retrieved

Details

node_vector_from_dataframe_unit returns a vector containing in the order of the dataframe columns the name of each of the nodes to be displayed on the graph.

Value

returns a vector containing the name of all the nodes to be added to the graph.

Examples

1
2
3
4
5
SelIndex_SelThumb <- c(1, 2)
SelIndex_SelPinky <- c(3, 4)

df <- data.frame(SelIndex_SelThumb, SelIndex_SelPinky)
nodes.vec <- node_vector_from_dataframe_unit(df)

JeremyGillard/somar documentation built on March 19, 2021, 10:50 a.m.