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


simmieyungie/texter documentation built on Dec. 23, 2021, 2:23 a.m.