Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation about working with lyrics data #35

Closed
melaniewalsh opened this issue Nov 28, 2023 · 0 comments · Fixed by #41
Closed

Add documentation about working with lyrics data #35

melaniewalsh opened this issue Nov 28, 2023 · 0 comments · Fixed by #41

Comments

@melaniewalsh
Copy link

Thanks so much for your work on this package! It's awesome.

I have 2 student groups who are working with this data for their final projects, and they were trying to figure out how to analyze the lyrics data included in taylor_album_songs, but they were getting stumped by the fact that the lyrics column contains nested data (shown below).

Screenshot 2023-11-28 at 1 15 16 PM
Screenshot 2023-11-28 at 1 15 36 PM

We figured out that you can unnest() the lyrics data, so that everything is included in the same dataframe, which is useful for basic text analysis (such as with tidytext).

taylor_df_with_lyrics <- taylor_album_songs %>% unnest(lyrics)

Screenshot 2023-11-28 at 1 16 45 PM

That was helpful for my students, so I thought it might be useful to include a couple of sentences in the documentation about the fact that the lyrics are nested, and maybe include an example of how users might unnest the data.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant