Skip to contents

Creates an example dm object from the tables in pixarfilms, along with the references.

Usage

dm_pixarfilms(..., color = TRUE, consistent = FALSE)

Arguments

...

These dots are for future extensions and must be empty.

color

Boolean, if TRUE (default), the resulting dm object will have colors assigned to different tables for visualization with dm_draw().

consistent

Boolean, In the original dm the film column in pixar_films contains missing values so cannot be made a proper primary key. Set to TRUE to remove those records.

Value

A dm object consisting of pixarfilms tables, complete with primary and foreign keys and optionally colored.

Examples

dm_pixarfilms()
#> ── Metadata ────────────────────────────────────────────────────────────────────
#> Tables: `pixar_films`, `pixar_people`, `academy`, `box_office`, `genres`, `public_response`
#> Columns: 23
#> Primary keys: 5
#> Foreign keys: 5
dm_pixarfilms() %>%
  dm_draw()
%0

academyacademyfilmfilm, award_typepixar_filmspixar_filmsfilmacademy:film->pixar_films:filmbox_officebox_officefilmbox_office:film->pixar_films:filmgenresgenresfilmfilm, genregenres:film->pixar_films:filmpixar_peoplepixar_peoplefilmpixar_people:film->pixar_films:filmpublic_responsepublic_responsefilmpublic_response:film->pixar_films:film