Skip to contents

A music collection, as represented in a recursive list returned from the Discogs API.

Usage

discog

Format

A unnamed list with 155 components, each representing an item in Sharla's music collection.

Source

See also

Other Discogs data and functions: discog_json()

Examples

length(discog)
#> [1] 155

str(discog, max.level = 2, list.len = 2)
#> List of 155
#>  $ :List of 5
#>   ..$ instance_id      : int 354823933
#>   ..$ date_added       : chr "2019-02-16T17:48:59-08:00"
#>   .. [list output truncated]
#>  $ :List of 5
#>   ..$ instance_id      : int 354092601
#>   ..$ date_added       : chr "2019-02-13T14:13:11-08:00"
#>   .. [list output truncated]
#>   [list output truncated]

vapply(discog[1:6], `[[`, c("basic_information", "title"), FUN.VALUE = "")
#> [1] "Demo"                              "Observant Com El Mon Es Destrueix"
#> [3] "I"                                 "Oído Absoluto"                    
#> [5] "A Cat's Cause, No Dogs Problem"    "Tashme"