#' Metrics dataset
#'
#' A dataset containing the prices and other attributes of almost 54,000
#' diamonds. The variables are as follows:
#'
#' @format
#' \describe{
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' }
#'
"metrics"
#' Metrics dataset
#'
#' A dataset containing the prices and other attributes of almost 54,000
#' diamonds. The variables are as follows:
#'
#' @format
#' \describe{
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' }
"features"
#' Metrics dataset
#'
#' A dataset containing the prices and other attributes of almost 54,000
#' diamonds. The variables are as follows:
#'
#' @format
#' \describe{
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' }
"switches"
#' Metrics dataset
#'
#' A dataset containing the prices and other attributes of almost 54,000
#' diamonds. The variables are as follows:
#'
#' @format
#' \describe{
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' \item{}{}
#' }
"hours"
#' Yankees statcast data from https://baseballsavant.mlb.com/
#'
#' Yankees Statcast data for seasons 2017-2019,
#' including Spring Training and Postseason games
#'
#' @format
#' \describe{
#' Statcast Search CSV Documentation
#' \item{game_date}{Date of the Game.}
#' \item{release_speed}{Pitch velocities from 2008-16 are via Pitch F/X, and adjusted to roughly out-of-hand release point. All velocities from 2017 and beyond are Statcast, which are reported out-of-hand.}
#' \item{release_pos_x}{Horizontal Release Position of the ball measured in feet from the catcher's perspective.}
#' \item{release_pos_z}{Vertical Release Position of the ball measured in feet from the catcher's perspective.}
#' \item{player_name}{Player's name tied to the event of the search.}
#' \item{batter}{MLB Player Id tied to the play event.}
#' \item{pitcher}{MLB Player Id tied to the play event.}
#' \item{events}{Event of the resulting Plate Appearance.}
#' \item{description}{Description of the resulting pitch.}
#' \item{spin_dir}{* Deprecated field from the old tracking system.}
#' \item{spin_rate_deprecated}{* Deprecated field from the old tracking system. Replaced by release_spin}
#' \item{break_angle_deprecated}{* Deprecated field from the old tracking system.}
#' \item{break_length_deprecated}{* Deprecated field from the old tracking system.}
#' \item{zone}{Zone location of the ball when it crosses the plate from the catcher's perspective.}
#' \item{des}{Plate appearance description from game day.}
#' \item{game_type}{Type of Game. E = Exhibition, S = Spring Training, R = Regular Season, F = Wild Card, D = Divisional Series, L = League Championship Series, W = World Series}
#' \item{stand}{Side of the plate batter is standing.}
#' \item{p_throws}{Hand pitcher throws with.}
#' \item{home_team}{Abbreviation of home team.}
#' \item{away_team}{Abbreviation of away team.}
#' \item{type}{Short hand of pitch result. B = ball, S = strike, X = in play.}
#' \item{hit_location}{Position of first fielder to touch the ball.}
#' \item{bb_type}{Batted ball type, ground_ball, line_drive, fly_ball, popup.}
#' \item{balls}{Pre-pitch number of balls in count.}
#' \item{strikes}{Pre-pitch number of strikes in count.}
#' \item{game_year}{Year game took place.}
#' \item{pfx_x}{Horizontal movement in feet from the catcher's perspective.}
#' \item{pfx_z}{Vertical movement in feet from the catcher's perpsective.}
#' \item{plate_x}{Horizontal position of the ball when it crosses home plate from the catcher's perspective.}
#' \item{plate_z}{Vertical position of the ball when it crosses home plate from the catcher's perspective.}
#' \item{on_3b}{Pre-pitch MLB Player Id of Runner on 3B.}
#' \item{on_2b}{Pre-pitch MLB Player Id of Runner on 2B.}
#' \item{on_1b}{Pre-pitch MLB Player Id of Runner on 1B.}
#' \item{outs_when_up}{Pre-pitch number of outs.}
#' \item{inning}{Pre-pitch inning number.}
#' \item{inning_topbot}{Pre-pitch top or bottom of inning.}
#' \item{hc_x}{Hit coordinate X of batted ball.}
#' \item{hc_y}{Hit coordinate Y of batted ball.}
#' \item{tfs_deprecated}{* Deprecated field from old tracking system.}
#' \item{tfs_zulu_deprecated}{* Deprecated field from old tracking system.}
#' \item{fielder_2}{Pre-pitch MLB Player Id of Catcher.}
#' \item{umpire}{* Deprecated field from old tracking system.}
#' \item{sv_id}{Non-unique Id of play event per game.}
#' \item{vx0}{The velocity of the pitch, in feet per second, in x-dimension, determined at y=50 feet.}
#' \item{vy0}{The velocity of the pitch, in feet per second, in y-dimension, determined at y=50 feet.}
#' \item{vy0}{The velocity of the pitch, in feet per second, in z-dimension, determined at y=50 feet.}
#' \item{ax}{The acceleration of the pitch, in feet per second per second, in x-dimension, determined at y=50 feet.}
#' \item{ay}{The acceleration of the pitch, in feet per second per second, in y-dimension, determined at y=50 feet.}
#' \item{az}{The acceleration of the pitch, in feet per second per second, in z-dimension, determined at y=50 feet.}
#' \item{sz_top}{Top of the batter's strike zone set by the operator when the ball is halfway to the plate.}
#' \item{sz_bot}{Bottom of the batter's strike zone set by the operator when the ball is halfway to the plate.}
#' \item{hit_distance}{Projected hit distance of the batted ball.}
#' \item{launch_speed}{Exit velocity of the batted ball as tracked by Statcast. For the limited subset of batted balls not tracked directly, estimates are included based on the process described here.}
#' \item{launch_angle}{Launch angle of the batted ball as tracked by Statcast. For the limited subset of batted balls not tracked directly, estimates are included based on the process described here.}
#' \item{effective_speed}{Derived speed based on the the extension of the pitcher's release.}
#' \item{release_spin}{Spin rate of pitch tracked by Statcast.}
#' \item{release_extension}{Release extension of pitch in feet as tracked by Statcast.}
#' \item{game_pk}{Unique Id for Game.}
#' \item{pitcher}{MLB Player Id tied to the play event.}
#' \item{fielder_2}{MLB Player Id for catcher.}
#' \item{fielder_3}{MLB Player Id for 1B.}
#' \item{fielder_4}{MLB Player Id for 2B.}
#' \item{fielder_5}{MLB Player Id for 3B.}
#' \item{fielder_6}{MLB Player Id for SS.}
#' \item{fielder_7}{MLB Player Id for LF.}
#' \item{fielder_8}{MLB Player Id for CF.}
#' \item{fielder_9}{MLB Player Id for RF.}
#' \item{release_pos_y}{Release position of pitch measured in feet from the catcher's perspective.}
#' \item{estimated_ba_using_speedangle}{Estimated Batting Avg based on launch angle and exit velocity.}
#' \item{estimated_woba_using_speedangle}{Estimated wOBA based on launch angle and exit velocity.}
#' \item{woba_value}{wOBA value based on result of play.}
#' \item{woba_denom}{wOBA denominator based on result of play.}
#' \item{babip_value}{BABIP value based on result of play.}
#' \item{iso_value}{ISO value based on result of play.}
#' \item{launch_speed_angle}{
#' Launch speed/angle zone based on launch angle and exit velocity.
#' 1: Weak
#' 2: Topped
#' 3: Under
#' 4: Flare/Burner
#' 5: Solid Contact
#' 6: Barrel}
#' \item{at_bat_number}{Plate appearance number of the game.}
#' \item{pitch_number}{Total pitch number of the plate appearance.}
#' \item{pitch_name}{The name of the pitch derived from the Statcast Data.}
#' \item{home_score}{Pre-pitch home score}
#' \item{away_score}{Pre-pitch away score}
#' \item{bat_score}{Pre-pitch bat team score}
#' \item{fld_score}{Pre-pitch field team score}
#' \item{post_home_score}{Post-pitch home score}
#' \item{post_away_score}{Post-pitch away score}
#' \item{post_bat_score}{Post-pitch bat team score}
#' \item{if_fielding_alignment}{Infield fielding alignment at the time of the pitch.}
#' \item{of_fielding_alignment}{Outfield fielding alignment at the time of the pitch.}
#' }
"nyy_statcast"
#' FanGraphs Batting data, 2017-2019 from https://fangraphs.com/
#'
#' @format
#' \describe{
#' \item{}{}
#' }
"fg_batting"
#' FanGraphs Fielding data, 2017-2019 from https://fangraphs.com/
#'
#' @format
#' \describe{
#' \item{}{}
#' }
"fg_fielding"
#' FanGraphs Pitching data, 2017-2019 from https://fangraphs.com/
#'
#' @format
#' \describe{
#' \item{}{}
#' }
"fg_pitching"
#' FanGraphs MLB totals Batting data, 1871-2019 from https://fangraphs.com/
#'
#' @format
#' \describe{
#' \item{}{}
#' }
"fg_mlb_alltime_batting"
#' FanGraphs MLB totals Pitching data, 1871-2019 from https://fangraphs.com/
#'
#' @format
#' \describe{
#' \item{}{}
#' }
"fg_mlb_alltime_pitching"
#' FanGraphs MLB totals Fielding data, 1871-2019 from https://fangraphs.com/
#'
#' @format
#' \describe{
#' \item{}{}
#' }
"fg_mlb_alltime_fielding"
#' FanGraphs Teams totals Batting data, 1871-2019 from https://fangraphs.com/
#'
#' @format
#' \describe{
#' \item{}{}
#' }
"fg_team_alltime_batting"
#' FanGraphs Teams totals Pitching data, 1871-2019 from https://fangraphs.com/
#'
#' @format
#' \describe{
#' \item{}{}
#' }
"fg_team_alltime_pitching"
#' FanGraphs Teams totals Fielding data, 1871-2019 from https://fangraphs.com/
#'
#' @format
#' \describe{
#' \item{}{}
#' }
"fg_team_alltime_fielding"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.