PL_plot_data: Function to calculate stats for Premier League teams

Description Usage Arguments

View source: R/PL_plot_data.R

Description

This function outputs stats for given dates

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
PL_plot_data(
  team_data,
  date_from,
  date_to,
  x_stat,
  y_stat,
  teams,
  x_stat_by = NA,
  y_stat_by = NA,
  custom_boundary = FALSE
)

Arguments

team_data

Data Frame in the form output by read_PL_data

date_from

Start date

date_to

End date

x_stat

The statistic output for the x axis. See details.

y_stat

The statistic output for the y axis. See details.

teams

The teams to output.

x_stat_by

The aggregation for the x stat. See details.

y_stat_by

The aggregation for the y stat. See details.

custom_boundary

Boolean


aboland/footballR documentation built on Jan. 26, 2021, 8:54 a.m.