load_jams: Load jams from disk

Description Usage Arguments Value Examples

View source: R/hello.R

Description

This function loads the jams.tsv file from the THIS IS MY JAM dataset into R. Furthermore if a user has at least one corrupted value in one of their jams (e.g. missing value) all the jams of the affected user will be deleted.

Usage

1
load_jams(jams_path, loadExample = FALSE)

Arguments

jams_path

Path to the location of the unzipped thisismyjam folder downloaded from https://archive.org/download/thisismyjam-datadump/thisismyjam-datadump.zip.

loadExample

If set to TRUE only example data will be loaded. This is mainly used to test the package.

Value

Returns a matrix of jams containing the following columns.

jam_id

Identification number of a jam.

user_id

Identification number of the user that created the jam.

artist

Artist of the jam.

title

Title of song of the jam.

creation_date

Title of song of the jam.

Examples

1
jams <- load_jams("S:/", loadExample = TRUE)

githerbert/HMM documentation built on May 30, 2019, 12:46 p.m.