classify_labels: Classify clear-text label name(s) into their parent...

Description Usage Arguments Value Examples

View source: R/classify_labels.R

Description

Classify clear-text label name(s) into their parent (major-label) music labels

Usage

1
classify_labels(labels, concatenated = FALSE)

Arguments

labels

A vector of clear-text (character) label names

concatenated

Indicator, whether to return only a character vector with final classification (default is FALSE)

Value

Either a data frame of the same length as vector and three additional columns (sony, warner, universal), coded as 1 if clear-text label is part of one of the three major music labels, or not (0) (default). If concatenated=TRUE, returns a vector of same length as input vector.

Examples

1
2
3
4
5
6
7
8
9
# Classify one label
classify_labels('Interscope')

# Classify vector of labels
classify_labels(c('Republic Records', 'Epic/Legacy', 'WM Finland', 'Chillhop Records'))

# Classify vector of labels, return one column as a response (`concatenated = TRUE`)
classify_labels(c('Republic Records', 'Epic/Legacy', 'WM Finland', 'Chillhop Records'),
                concatenated = TRUE)

hannesdatta/musiclabels documentation built on Oct. 2, 2021, 12:36 a.m.