Learn R Programming

saotd (version 0.3.1)

word_corr: Twitter Word Correlations

Description

The word correlation displays the mutual relationship between words.

Usage

word_corr(DataFrameTidy, number, sort = TRUE)

Value

A Tibble.

Arguments

DataFrameTidy

Data Frame of Twitter Data that has been tidy'd.

number

The number of word instances to be included.

sort

Rank order the results from most to least correlated.

Examples

Run this code
if (FALSE) {
library(saotd)
data <- raw_tweets
tidy_data <- Tidy(DataFrame = data)
TD_Word_Corr <- word_corr(DataFrameTidy = tidy_data,
                          number = 500,
                          sort = TRUE)

TD_Word_Corr
}                    

Run the code above in your browser using DataLab