R/ngram-c.R

Defines functions ngram

Documented in ngram

#' Nram generator
#'
#' @keywords internal
#' @export
ngram <- function(x, n, n_min, delim) {
  n <- as.integer(n)
  n_min <- as.integer(n_min)

  .Call(ffi_ngram, x, n, n_min, delim)
}

Try the textrecipes package in your browser

Any scripts or data that you put into this service are public.

textrecipes documentation built on Nov. 3, 2026, 5:07 p.m.