when_ngram: Find n-gram occurrences

Description Usage Arguments Value

View source: R/ngram.R

Description

Finds n-gram occurrences in the suffix tree.

Usage

1
when_ngram(tree, ngram)

Arguments

tree

Suffix tree

ngram

n-gram to search for, as a numeric or character vector.

Value

Numeric vector of locations for the n-gram occurrences.


pmcharrison/suffixTree documentation built on May 3, 2019, 11:52 p.m.