Learn R Programming

BAwiR (version 1.3.4)

get_games_rosters: Get all games and rosters

Description

This function is to get all the games and rosters of the competition selected.

Usage

get_games_rosters(competition, type_league, nums, verbose = TRUE, 
                         accents = FALSE, r_user, df0, df_bio0)

Value

Data frame.

Arguments

competition

String. Options are "ACB", "Euroleague" and "Eurocup".

type_league

String. If competition is ACB, to scrape ACB league games ("ACB"), Copa del Rey games ("CREY") or Supercopa games ("SCOPA").

nums

Numbers corresponding to the website from which scraping.

verbose

Should R report information on progress? Default TRUE.

accents

If competition is ACB, should we keep the Spanish accents? The recommended option is to remove them, so default FALSE.

r_user

Email to identify the user when doing web scraping. This is a polite way to do web scraping and to certify that the user is working as transparently as possible with a research purpose.

df0

Data frame to save the games data.

df_bio0

Data frame to save the rosters data.

Author

Guillermo Vinue