count_companies_by_set: Add a logical variable to the companies in a hierarchy when...

View source: R/company_hierarchy.R

count_companies_by_setR Documentation

Add a logical variable to the companies in a hierarchy when one of it's attributes match one of a set of values

Description

Add a logical variable to the companies in a hierarchy when one of it's attributes match one of a set of values

Usage

count_companies_by_set(graph, name_filter, set_criteria)

Arguments

graph

A graph

name_filter

The name of the attribute which values are compared to the criteria

set_criteria

The set of criteria in a vector to which the values are compared

Value

A graph where all the nodes contain the newly created attribute

Examples

count_companies_by_set(graph = graph_company, "code_SBI", "64", "642", "6420"))

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