counter: Get the number of times a vector of words occurs

Description Usage Arguments Value

View source: R/counter.R

Description

This function retrieves the number of times each word in a corpus occurs. It returns a dataframe containing the word and the corresponding counts

Usage

1
counter(word_vec, words)

Arguments

word_vec

This is the corpus you want to the word frequency extracted from

words

This is a vector of words you want to retrieve their frequency counts

Value

a data frame object. A data frame object of strings and their corresponding count


texter documentation built on Sept. 20, 2021, 5:08 p.m.