Skip to contents

Cumulative total of vocabulary size

Usage

get_cumulative_vocabulary(x)

Arguments

x

A vector, such as a column of character strings

Value

A vector of counts

Examples

c("cat", "dog", "dog", "bat", "dog") |>
  get_cumulative_vocabulary()
#> [1] 1 2 2 3 3