Star Wars DB 0.1.3 Relational Data from the Star Wars API for Learning and Teaching

Relational data from the open source Star Wars API, provided as R tables or a complete DuckDB database for learning and teaching.


Star Wars DB 0.1.3 Relational Data from the Star Wars API for Learning and Teaching - cover page
Brand
Star Wars
Category
Other
Document type
Datasheet
Language
English
Pages
12
File format
PDF
File size
100 KB
Published
30 November, 2026
Updated
30 November, 2026
MD5 checksum
070F3A507B526CC8441540ECA6C8BD78

About this manual

The starwarsdb package (version 0.1.3) provides data about the Star Wars movie franchise in a set of relational tables or as a complete DuckDB database. All data was collected from the open source Star Wars API (SWAPI).

The package includes tables for films, people, planets, species, vehicles and pilots, plus a schema table describing the SWAPI endpoints. It also provides functions to connect to the DuckDB database (starwars_connect, starwars_disconnect, starwars_db) and to create a dm data model object (starwars_dm).

What's inside

  • films
  • films_people
  • films_planets
  • films_vehicles
  • people
  • pilots
  • planets
  • schema
  • species
  • starwars_db

Specifications

Package version0.1.3
Publication date2025-08-23
Films table6 rows and 6 variables
People table82 rows and 10 variables
Planets table33 rows and 2 variables
Species table37 rows and 10 variables
Vehicles table75 rows and 14 variables
Schema table59 rows and 9 variables
LicenseMIT

Frequently asked questions

What is the Star Wars DB package?

It provides data about the Star Wars movie franchise in a set of relational tables or as a complete DuckDB database, all collected from the open source Star Wars API.

Where does the data come from?

All data was collected from the open source Star Wars API (SWAPI), and each table lists SWAPI as its reference.

How do you connect to the Star Wars database?

Use starwars_db() to get the path to the database and DBI::dbConnect() with duckdb::duckdb(), or use starwars_connect() to connect without worrying about connection details.

What does starwars_dm() do?

It creates a dm object with the starwarsdb tables, and by default configures it with all primary and foreign keys.

Download PDF (100 KB)