trakt_datasets: Cached filter datasets

trakt_datasetsR Documentation

Cached filter datasets

Description

These datasets are used internally to check the optional filter parameters for certain functions (see search_query or the dynamic lists like shows_popular). They are unlikely to change often and are therefore included as package datasets.

Usage

trakt_genres

trakt_languages

trakt_networks

trakt_countries

trakt_certifications

Format

Every dataset is a tibble(). The following list includes the dataset topic with a link to the API documentation, a short description and a list of variables with example values:

  • Genres: Genres for shows and movies (with their two-letter codes) trakt.tv knows.

    • 3 Variables: name ("Action"), slug ("action"), type ("movies")

  • Languages: Languages (and two-letter codes) trakt.tv knows.

    • 3 Variables: name ("Arabic"), code ("ar"), type ("movies")

  • Networks: TV networks trakt.tv knows.

    • 2 Variables: name ("TBS"), name_clean ("tbs") (lower-case, no trailing whitespaces)

  • Countries: Country names (and two-letter codes).

    • 3 Variables: name ("Belarus"), code ("by"), type ("movies")

  • Certifications: TV and movie certifications (e.g. "PG-13" and the likes).

    • 5 Variables: country ("us" only), name ("TV-PG"), slug ("tv-pg"), description ("Parental Guidance Suggested"), type ("shows")

An object of class tbl_df (inherits from tbl, data.frame) with 64 rows and 3 columns.

An object of class tbl_df (inherits from tbl, data.frame) with 244 rows and 3 columns.

An object of class tbl_df (inherits from tbl, data.frame) with 3081 rows and 2 columns.

An object of class tbl_df (inherits from tbl, data.frame) with 350 rows and 3 columns.

An object of class tbl_df (inherits from tbl, data.frame) with 12 rows and 5 columns.

Details

The datasets are prefixed with trakt_ purely to avoid confusion or masking for filter arguments of the same name.

Note

Currently only US certifications are available.

Examples

head(trakt_genres)
head(trakt_languages)
head(trakt_networks)
head(trakt_countries)
trakt_certifications

jemus42/tRakt documentation built on April 19, 2024, 3:25 a.m.