Repeatr_1: imports raw data in CSV format (1 row per show), cleans the...

View source: R/Repeatr_1.R

Repeatr_1R Documentation

imports raw data in CSV format (1 row per show), cleans the data, and reshapes it long so that the rows are identified by combinations of gid and song_number.

Description

This was originally developed with a file called "fugotcha.csv", the first line of which went like this:

washington-dc-usa-90387 FLS0001 03/09/1987 Wilson Center $5 300 Joey Picuri Fugazi Cassette Joe #1 Intro Song #1 Furniture Merchandise Turn Off Your Guns In Defense Of Humans Waiting Room The Word

"gid" is short for "gig id"

Another data file that was used was called "releases_songs_durations_wikipedia.csv" and was obtained from the Wikipedia data on the Fugazi discography.

This file contains the following variables: index releaseid release track_number songid song instrumental vocals_picciotto vocals_mackaye vocals_lally duration_seconds

Usage

Repeatr_1(mycsvfile = NULL, mysongdatafile = NULL, releasesdatafile = NULL)

Arguments

mycsvfile

Optional name of CSV file containing Fugazi Live Series data to be used. If omitted, the default file provided with the package will be used.

mysongdatafile

Optional name of CSV file containing song data to be used. If omitted, the default file provided with the package will be used.

releasesdatafile

Optional name of CSV file containing releases data to be used. If omitted, the default file provided with the package will be used.

Examples

fugotcha <- system.file("extdata", "fugotcha.csv", package = "Repeatr")
releases_songs_durations_wikipedia <- system.file("extdata", "releases_songs_durations_wikipedia.csv", package = "Repeatr")
releasesdatafile <- system.file("extdata", "releases.csv", package = "Repeatr")
Repeatr_1_results <- Repeatr_1(mycsvfile = fugotcha, mysongdatafile = releases_songs_durations_wikipedia, releasesdatafile = releasesdatafile)


alexmitrani/Repeatr documentation built on Feb. 3, 2025, 1:36 p.m.