Skip to content

KittJonathan/datardis

Repository files navigation

datardis

The goal of datardis is to provide datasets from the Doctor Who and Torchwood TV shows.

Six datasets are available, three for each show:

🎞️ Dr Who

  • drwho_episodes

  • drwho_directors

  • drwho_writers

🎞️ Torchwood

  • torchwood_episodes

  • torchwood_directors

  • torchwood_writers

Installation

You can download and install the package from CRAN:

install.packages("datardis")

You can install the development version from GitHub with:

devtools::install_github("KittJonathan/datardis")

Examples

## Load packages
library(datardis)
library(tidyverse)

## Find maximum number of UK viewers for Doctor Who (in millions)
max(drwho_episodes$uk_viewers, na.rm = TRUE)
#> [1] "9.87"

## Find who wrote the most episodes for Doctor Who
drwho_writers |>
     count(writer, sort = TRUE) |>
     head(5)
#> # A tibble: 5 × 2
#>   writer               n
#>   <chr>            <int>
#> 1 Steven Moffat       45
#> 2 Russell T Davies    31
#> 3 Chris Chibnall      29
#> 4 Mark Gatiss          9
#> 5 Toby Whithouse       7

## Find who directed the most episodes for Doctor Who
drwho_directors |>
     count(director, sort = TRUE) |>
     head(5)
#> # A tibble: 5 × 2
#>   director               n
#>   <chr>              <int>
#> 1 Graeme Harper         12
#> 2 Euros Lyn             11
#> 3 Douglas Mackinnon      8
#> 4 Jamie Magnus Stone     8
#> 5 James Strong           7

News: datardis v.0.0.4

  • added last Dr Who episodes (2022 specials)

  • replaced %>% pipe with |> pipe in examples

About

Doctor who datasets

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages