add_to_database: Add selected data to a MySql database

Description Usage Arguments

View source: R/fpl_db.R

Description

Retrieve fantasy football data from fantasy.premierleague.com site and add to a MySQL database

Usage

1
2
add_to_database(db, leagueID = NULL, stats = FALSE, league = FALSE,
  weeks = c(), all = FALSE, progressbar = FALSE)

Arguments

db

open database object returned from dbConnect

leagueID

Numeric league identifier

stats

Boolean. If true update stats table

league

Boolean. If true update league table

weeks

vector of weeks to collect data for

all

Boolean. If true collect data for all weeks (overrides weeks vector)

progressbar

Boolean. If true a progress bar is displayed


harveyl888/fplR documentation built on Aug. 21, 2019, 1:15 a.m.