Get a list of years for a given theme, with the total number of sets in each.
Source:R/getYears.R
getYears.Rd
Get a list of years for a given theme, with the total number of sets in each.
Usage
getYears(theme, key = getOption("brickset_key"), ...)
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 fromgetOption('brickset_username')
andgetOption('brickset_password')
.
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
Examples
if (FALSE) {
options(brickset_key = 'BRICKSET_KEY',
brickset_username = 'BRICKSET_UERNAME',
brickset_password = 'BRICKSET_PASSWORD')
getYears('Architecture')
}