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

View source: R/company_hierarchy.R

mark_companies_logicalR 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

mark_companies_logical(graph, name_logical, name_filter, set_criteria)

Arguments

graph

A graph

name_logical

The name of the newly created logical company attribute

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

graph <- mark_companies_logical(graph, "is_holding", "code_SBI", c("64", "642", "6420"))

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