getNodes: getNodes

View source: R/getNodes.R

getNodesR Documentation

getNodes

Description

Generate nodes for the input data frame, returns data frame of possible nodes and its IDs for the further process.

Usage

getNodes(crude_data, columns_for_nodes = NULL, group = FALSE)

Arguments

crude_data

Data Frame that you want to build a network for.

columns_for_nodes

Vector of column names for crude_data, works well for at least 3 columns

group

Logical value, set TRUE to differentiate nodes by shapes and colors. Default value is FALSE

Value

Data frame, each unique item is a node and associated with unique id

Author(s)

Jayachandra N

Examples

getNodes(head(mtcars), c("cyl", "gear", "vs"), group = TRUE)

netknitr documentation built on April 3, 2025, 5:47 p.m.