make_nodes: Reformat dataframes in an appropriate format for network...

View source: R/make_nodes.R

make_nodesR Documentation

Reformat dataframes in an appropriate format for network analysis.

Description

Take a data frame and create a dataframe of unique nodes containing their dataframe unique ids, and a 'node id' as well.

Usage

make_nodes(attribute_data, node_col, ...)

Arguments

attribute_data

Dataframe containing node attribute data

node_col

Column name in attribute_data that contains the unique common node identifier

...

Attribute variables in attribute_data. Note the function assumes there is only one value for each attribute per node.

Value

A dataframe of nodes as per node_col


shanej90/nodemaker documentation built on Feb. 22, 2025, 2:39 p.m.