Learn R Programming

baseballr (version 1.3.0)

team_consistency: Calculate Team-level Consistency

Description

This function allows you to calculate team-level consistency in run scoring and run prevention over the course of an entire season.

Usage

team_consistency(year)

Value

Returns a tibble with the following columns

col_nametypes
Teamcharacter
Con_Rnumeric
Con_RAnumeric
Con_R_Ptilenumeric
Con_RA_Ptilenumeric

Arguments

year

Season consistency should be run for.

Examples

Run this code
# \donttest{
  try(team_consistency(year=2021))
# }

Run the code above in your browser using DataLab