{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook assumes that you've already created the file `roman.db` in part one of the [intro to sql](intro to sql.ipynb) notebook. It shows how to load a sqlite database into R." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# first we get the packages we need:\n", "library(DBI)\n", "library(RSQLite)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| id | elevation | capacity |
|---|---|---|
| arlesAmphitheater | 21 | 20000 |
| romeFlavianAmphitheater | 22 | 50000 |
| newsteadAmphitheater | 83 | 1500 |
| pozzuoliFlavianAmphitheater | 41 | 35700 |
| segobrigaAmphitheater | 817 | 7500 |
| parisAmphitheater | 46 | 15000 |
| nimesAmphitheater | 50 | 24000 |
| chesterAmphitheater | 23 | 0 |
| arezzoAmphitheater | 263 | 8000 |
| londonAmphitheater | 29 | 6500 |
| urbisagliaAmphitheater | 219 | 5150 |
| vindonissaAmphitheater | 361 | 15142 |
| frejusAmphitheater | 12 | 12000 |
| tebessaAmphitheater | 877 | 9400 |
| aquileiaAmphitheater | 2 | 0 |
| terminiImereseAmphitheater | 76 | 0 |
| bolsenaAmphitheater | 417 | 0 |
| narbonneAmphitheater | 14 | 0 |
| capuaImperialAmphitheater | 34 | 37000 |
| dorchesterAmphitheater | 78 | 0 |
| autunAmphitheater | 317 | 0 |
| bobadelaAmphitheater | 383 | 0 |
| chichesterAmphitheater | 14 | 0 |