word_frequency: Word frequency

Description Usage Arguments Details Value Examples

View source: R/word_frequency.R

Description

Analyze the weighted frequency of words in a certain text with metrics. Get hidden patterns in the text by extracting and aggregating metrics about words in your text and comparing it to the original metric.

Usage

1
word_frequency(df, sep = " ", rm_words = stopwords_en)

Arguments

df

a data frame with a character and a numeric vector columns

sep

the separator of words, defaults to space, but can be modified if needed

rm_words

words to remove, defaults to English stopwords from the tm package

Details

useful for: - keyword / search term analysis - tweets analysis - articles traffic (from titles or URLs) - Facebook statuses - any other social media text with metrics

Value

a data frame of metrics by word along side the original metrics

Examples

1
word_frequency(boxoffice[c("title", "lifetime_gross")])

eliasdabbas/radvertools documentation built on May 7, 2019, 1:30 p.m.