Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 2.61 KB

File metadata and controls

62 lines (43 loc) · 2.61 KB

taylor: The Taylor Swift / R Project

This readme was generated by ChatGPT and edited/proofread by me.

taylor is an R package that provides a huge trove of data about Taylor Swift's song lyrics.The analysis is based on version 2.0.0 of the package, and its datasets are as current as possible and include content from the Eras tour. .

The goal of this project is to explore Taylor Swift's discography and gain insights into her music, lyrics, and album themes using the data provided by the taylor R package.

Features

The taylor package provides several datasets:

taylor_all_songs: A data set containing lyrics to and characteristics of all officially released Taylor Swift songs. This includes albums, EPs, and individually released singles. taylor_album_songs: Same as taylor_all_songs but fewer songs -- one for each song from an official studio album taylor_albums: A data set containing the names of Taylor's official releases, the album type, and release date.

Getting Started

Prerequisites:

  • R (>= 3.6.0)
  • RStudio (optional, but recommended)

Installation

Install the taylor package from CRAN:

install.packages("taylor")

Load the package in your R session:

library(taylor)

Accessing datasets

See Reference

> head(taylor_all_songs)
# A tibble: 6 × 29
  album_name   ep    album_release track_number track_name       artist featuring
  <chr>        <lgl> <date>               <int> <chr>            <chr>  <chr>    
1 Taylor Swift FALSE 2006-10-24               1 Tim McGraw       TayloNA       
2 Taylor Swift FALSE 2006-10-24               2 Picture To Burn  TayloNA       
3 Taylor Swift FALSE 2006-10-24               3 Teardrops On MyTayloNA       
4 Taylor Swift FALSE 2006-10-24               4 A Place In ThisTayloNA       
5 Taylor Swift FALSE 2006-10-24               5 Cold As You      TayloNA       
6 Taylor Swift FALSE 2006-10-24               6 The Outside      TayloNA       
# ℹ 22 more variables: bonus_track <lgl>, promotional_release <date>,
#   single_release <date>, track_release <date>, danceability <dbl>,
#   energy <dbl>, key <int>, loudness <dbl>, mode <int>, speechiness <dbl>,
#   acousticness <dbl>, instrumentalness <dbl>, liveness <dbl>, valence <dbl>,
#   tempo <dbl>, time_signature <int>, duration_ms <int>, explicit <lgl>,
#   key_name <chr>, mode_name <chr>, key_mode <chr>, lyrics <list>

Seee some example usage on the creator's blog.