Description Usage Arguments Examples
View source: R/calc_self_sim.R
Calculate the self-similarity matrix for song lyrics.
1 2 3 4 5 6 7 8 | calc_self_sim(
df,
lyric_col,
output = "tidy",
remove_stop_words = FALSE,
language = "en",
source = "snowball"
)
|
df |
The data frame containing song lyrics. Usually from the output of |
lyric_col |
The unquoted name of the column containing lyrics |
output |
Determine the type of output. Default is |
remove_stop_words |
Optional argument to remove stop words from self-similarity matrix. |
language |
Language of stop words. See |
source |
Stop words source. See |
1 2 | # bad_habits <- genius_lyrics("Alix", "Bad Habits")
# self_sim <- calc_self_sim(bad_habits, lyric)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.