get_attribute: This finds attributes, like output or value, for a particular...

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

This finds attributes, like output or value, for a particular node by traversing fails and collecting the named attribute

Usage

1
get_attribute(self, attribute)

Arguments

attribute

Value

a character vector of the node attributes

Examples

1
2
3
4
keys <- c("a", "ab", "bab", "bc", "bca", "c", "caa", "abc")
values <- c("foo", "bar", "foo", "bar", "foo", "bar", "foo", "bar")
example_trie <- trie_create(keys, values)
get_attribute(example_trie$b$a$b, "output")

lmkirvan/textTries documentation built on May 25, 2019, 9:32 p.m.