counter {texter}R Documentation

Get the number of times a vector of words occurs

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

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


[Package texter version 0.1.9 Index]