get_node: Extract active nodes using partial matches:

View source: R/get_node.R

get_nodeR Documentation

Extract active nodes using partial matches:

Description

Extract active nodes using partial matches:

Usage

get_node(string_to_match = character, node_names = FALSE,
  network = grassland_bbn)

Arguments

string_to_match

The character string to search.

node_names

Defaults to FALSE and returns the matched active Netica node. If TRUE, returns the names of the matched nodes. Note that matching is currently case sensitive.

network

Character string of the active target network's name

Details

Note that because this function returns a list when node_names = FALSE, this function can handle string_to_match vectors of length greater than 1, such that if you supply a multi-element vector, a list will be returned. Note that this function no longer supports partial matches at the moment due to an error with the function returning multiple concatenated matches when a partial match is found for more than one node.

Value

Returns a character vector of the node names that match the searched string if node_names = TRUE, else returns a list of active netica nodes that match the searched string if node_names = FALSE.


egouldo/GrasslandAllocatr documentation built on Oct. 19, 2022, 8:18 a.m.