Data from the Doctor Who Series

Explore data related to the Doctor Who TV series.


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

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("datardis")

0.0.5 by Jonathan Kitt, 2 years ago


Browse source code at https://github.com/cran/datardis


Authors: Jonathan Kitt [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr

Suggests testthat


See at CRAN