get_node: Extract active nodes using partial matches:

Description Usage Arguments Details Value

Description

Extract active nodes using partial matches:

Usage

1
2
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 May 16, 2019, 12:15 a.m.