Learn R Programming

saotd (version 0.2.0)

word_corr: Twitter Word Correlations

Description

The word correlation displays the mutual relationship between words.

Usage

word_corr(DataFrameTidy, number, sort = TRUE)

Arguments

DataFrameTidy

DataFrame 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.

Value

A tribble

Examples

Run this code
# NOT RUN {
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