compare_nodes: Compare Nodes

View source: R/compare_nodes.R

compare_nodesR Documentation

Compare Nodes

Description

This function compares two nodes to determine if all elements of the first node ('node_1') are present within the accolites of the second node ('node_2'). Accolites are defined as a set of elements retrieved from the 'get_accolites' function, which operates on 'node_1' within a specified window of data. The comparison is successful if all elements in 'node_1' are found in the accolites of 'node_2'.

Usage

compare_nodes(node_1, node_2)

Arguments

node_1

A vector representing the first node whose elements will be compared against the accolites of 'node_2'.

node_2

A vector representing the second node, from which accolites will be derived for comparison.

Value

A logical value. The function returns 'TRUE' if all elements of 'node_1' are found in the accolites of 'node_2'. It returns 'FALSE' otherwise.


funMoDisco documentation built on April 16, 2025, 1:10 a.m.