View source: R/create_ergast_db.R
createF1db | R Documentation |
Create an F1 database Creates a local 'RSQLite' database using the latest 'Ergast' data and establish a connection.
createF1db(csv_dir = NULL, rm_csv = FALSE, type = "sqlite")
csv_dir |
either NULL or the name of a directory containing csv files from Ergast. If NULL, the files will be downloaded and placed in a directory within the working directory named "/f1db_csv" |
rm_csv |
logical indicating whether the csv directory should be deleted after initializing the database |
type |
Indicates the type of database backend used |
createF1db()
creates a local 'RSQLite' database using csv files downloaded from Ergast.
The database will be located in a file 'f1_db.RSQLite' within the working directory.
an object of class RSQLite
library(DBI)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.