tm_matchday_table: Get weekly league table

View source: R/tm_matchday_table.R

tm_matchday_tableR Documentation

Get weekly league table

Description

Returns the league table for each chosen matchday from transfermarkt

Usage

tm_matchday_table(country_name, start_year, matchday, league_url = NA)

Arguments

country_name

the country of the league's players

start_year

the start year of the season (2020 for the 20/21 season)

matchday

the matchweek number. Can be a vector of matchdays

league_url

league url from transfermarkt.com. To be used when country_name not available in main function

Value

returns a dataframe of the table for a selected league and matchday

Examples

## Not run: 
try({
tm_matchday_table(country_name="England", start_year="2020", matchday=1)
tm_matchday_table(country_name="England", start_year="2020", matchday=c(1:5))
})

## End(Not run)

worldfootballR documentation built on Nov. 26, 2022, 9:05 a.m.