Generate pairwise correlations for a term of interest.
moment_correlations(df, text_var, term, n_corr = 20)
A dataframe where each row is a separate post.
The variable containing the text that you wish to explore.
The chosen term.
The number of correlations to include.
A bar plot showing the n most correlated terms and their frequencies.