Description Usage Arguments Value Examples
Adds a sequence to a suffix tree. The sequence can be saved to the suffix
tree, as when initially building the tree from a corpus (save = TRUE
),
or the sequence can be solely tracked in the tree (save = FALSE
),
as when e.g. making predictions based on the suffix tree.
In the latter case, only the tree's active nodes are updated.
1 2 |
tree |
Suffix tree as produced by |
seq |
Sequence to add, should be a numeric or character vector. |
save |
Boolean; whether or not to save the sequence in the tree
(if |
time |
Either |
reset_active_nodes |
By default, the tree's active nodes are reset
before adding the new sequence ( |
terminate |
Boolean; ignored if |
visual |
Boolean; whether or not to visualize the tree construction process (this is done interactively using the default plotting device). |
Returns the updated tree. Updates are done in-place, so it is rarely necessary to save the output of this function.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.