create_graph_company_hierarchies: Function for creating a graph for all company hierarchies

View source: R/company_hierarchy.R

create_graph_company_hierarchiesR Documentation

Function for creating a graph for all company hierarchies

Description

This function greates an igraph from a data frame for making networks of company hierarchies. For this function to work the first and second column must contain the company id and the companies parent id respectively

Usage

create_graph_company_hierarchies(tbl_company_relations)

Arguments

tbl_company_relations

A data frame containing the company/company relations data.

Value

A graph with all company hierarchies

Examples

graph_company_hierarchies <- create_graph_company_hierarchies(tbl_company_relations)

mark-me/graydon.package documentation built on Nov. 14, 2023, 5:31 p.m.