createF1db: Create an F1 database Creates a local 'RSQLite' database...

View source: R/create_ergast_db.R

createF1dbR Documentation

Create an F1 database Creates a local 'RSQLite' database using the latest 'Ergast' data and establish a connection.

Description

Create an F1 database Creates a local 'RSQLite' database using the latest 'Ergast' data and establish a connection.

Usage

createF1db(csv_dir = NULL, rm_csv = FALSE, type = "sqlite")

Arguments

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

Details

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.

Value

an object of class RSQLite

Examples


library(DBI)


NilsDM/f1db documentation built on June 8, 2022, 11:18 a.m.