process_statcast_payload function

Process Baseball Savant CSV payload

Process Baseball Savant CSV payload

This is a helper function for all statcast_search() functions. The function processes the initial csv payload acquired from Baseball Savant to ensure consistency in formatting across downloads

process_statcast_payload(payload)

Arguments

  • payload: payload from a Baseball Savant request

Returns

A tibble with the processed Statcast data coerced to the correct types.