get_table_results: League cross table

View source: R/get_table_results.R

get_table_resultsR Documentation

League cross table

Description

The league results are represented with a cross table.

Usage

get_table_results(df, competition, season)

Arguments

df

Data frame with the games and the players info.

competition

Competition.

season

Season.

Value

List with these two elements:

  • plot_teams Graphical device with the cross table.

  • wins_teams Vector with the team wins.

Author(s)

Guillermo Vinue

Examples

## Not run: 
df <- do_join_games_bio("ACB", acb_games_1718, acb_players_1718)
df$Compet <- "ACB"

gg <- get_table_results(df, "ACB", "2017-2018")

gg$wins_teams
gg$plot_teams

## End(Not run)


BAwiR documentation built on Nov. 14, 2023, 5:08 p.m.