Learn R Programming

brickset (version 2025.0.0)

getYears: Get a list of years for a given theme, with the total number of sets in each.

Description

Get a list of years for a given theme, with the total number of sets in each.

Usage

getYears(theme, key = getOption("brickset_key"), ...)

Value

a data.frame with the years of a given theme.

theme

Name of the theme

year

Year

setCount

Number of sets released in the given year and theme

Arguments

theme

the theme

key

the Brickset API key.

...

other parameters passed to getUserHash including the Brickset username and password if they are not available from getOption('brickset_username') and getOption('brickset_password').

Examples

Run this code
if (FALSE) {
options(brickset_key = 'BRICKSET_KEY',
        brickset_username = 'BRICKSET_UERNAME',
        brickset_password = 'BRICKSET_PASSWORD')
getYears('Architecture')
}

Run the code above in your browser using DataLab