Learn R Programming

BAwiR (version 1.3.4)

scraping_rosters_acb: ACB players' profile

Description

This function allows us to obtain the basic information of each player, including his birth date. Then, we will be able to compute the age that each player had in the date that he played each game. The website used to collect information is https://www.acb.com.

Usage

scraping_rosters_acb(pcode, verbose = TRUE, accents = FALSE, 
                     r_user = "guillermo.vinue@uv.es")

Value

Data frame with eight columns:

  • CombinID: Unique ID to identify the players.

  • Player: Player's name.

  • Position: Player's position on the court.

  • Height: Player's height.

  • Date_birth: Player's birth date.

  • Nationality: Player's nationality.

  • Licence: Player's licence.

  • Website_player: Website.

Arguments

pcode

Code corresponding to the player's website to scrape.

verbose

Should R report information on progress? Default TRUE.

accents

Should we keep the Spanish accents? The recommended option is to remove them, so default FALSE.

r_user

Email user 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.

Author

Guillermo Vinue

Details

Some players have a particular licence, which does not necessarily match with their nationality, in order not to be considered as a foreign player, according to the current ACB rules.

See Also

do_scraping_rosters

Examples

Run this code
if (FALSE) {
# Not needed to scrape every time the package is checked, built and installed.
df_bio <- scraping_rosters_acb("56C", verbose = TRUE, accents = FALSE, 
                               r_user = "guillermo.vinue@uv.es")
}

Run the code above in your browser using DataLab