Description Usage Arguments Details Value Examples
Returns a character vector with the completed words
1  | completeWord(tree, string)
 | 
tree | 
 an existing ternary search tree to search words in.  | 
string | 
 a string of characters to be completed.  | 
Searches recursively through the tree until all words starting with the specified string have been found, and stores them in a character vector.
A vector of class 'character'.
1 2 3  | fruitTree <- newTree(c("apple", "orange","apricot","cherry"))
fruits.ap <- completeWord(fruitTree, "ap")
fruits.ap
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.