check_in_path: Check whether a regular expression is present in nodes...

View source: R/network_analysis.R

check_in_pathR Documentation

Check whether a regular expression is present in nodes (processes) in a list of paths

Description

Check whether a regular expression is present in nodes (processes) in a list of paths

Usage

check_in_path(node_regex, path)

Arguments

node_regex

A string regular expression to search for in process nodes.

path

A list of paths

Value

logical list

Examples

 dg <- demos_001_sector %>%
           filter(period == 2006) %>%
           make_graph_from_veda_df(node_labels = process,
                         edge_labels = commodity
                           )
 all_mincoa1_paths <- all_simple_paths(g, from = "mincoa1")
 check_in_paths("(exp)", all_min_coa1_paths)

DataScienceScotland/vedar documentation built on April 3, 2022, 10:32 p.m.