is_word: Is a word

Description Usage Arguments Value Examples

View source: R/rtrie.R

Description

Verify whether or not a given string is a word in the trie

Usage

1
is_word(str, trie)

Arguments

str

A character string that may or may not be a word in the trie.

trie

The trie to search.

Value

a Boolean

Examples

1
2
3
trie <- char_tree(c('able', 'act', 'acts', 'across','act',
                    'bat','babble','bobble'), 'X')
is_word('tree', trie)

rtrie documentation built on May 29, 2017, 11:26 p.m.