Description Usage Arguments Value Examples
Return a list of words that match a string passed as an argument. The match is anchored to the beginning of the string, so that words that start with the string "str" are returned.
| 1 | matching_words(str, trie)
 | 
| str | A character string that will be compared with the trie. | 
| trie | A trie representing a list of words that will be searched. | 
A vector of words represented in the trie that match the character string passed in as an argument.
| 1 2 3 | trie <- char_tree(c('able', 'act', 'acts', 'across','act',
                    'bat','babble','bobble'), 'X')
matching_words('act',trie)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.