count_ngram: Summarise the counts of a specified ngram in character vector

View source: R/count_ngram.R

count_ngramR Documentation

Summarise the counts of a specified ngram in character vector

Description

Summarise the counts of a specified ngram in character vector

Usage

count_ngram(text, count_col = "count", n = 2)

Arguments

text

Character string vector to pass through

count_col

A string vector for the name of the count column. Defaults to "count"

n

Specify n of ngram

Value

A tidy data frame with the count results

Examples

count_ngram(c("The quick brown fox jumped over the lazy dog"))

martinctc/textworks documentation built on Oct. 5, 2022, 8:09 p.m.