Learn R Programming

baseballr (version 0.8.6)

get_ncaa_game_logs: Get NCAA Baseball Game Logs

Description

Get NCAA Baseball Game Logs

Usage

get_ncaa_game_logs(player_id, year = 2019, type = "batting", span = "game")

Arguments

player_id

A player's unique id. Can be found using the get_ncaa_baseball_roster function.

year

The year of interest.

type

The kind of statistics you want to return. Current options are 'batting' or 'pitching'.

span

The span of time; can either be 'game' for game logs in a season, or 'career' which returns seasonal stats for a player's career.

Value

A data frame containing player and school information as well as game by game statistics

Examples

Run this code
# NOT RUN {
get_ncaa_game_logs(player_id = 1879650, year = 2019), type = "batting")
# }

Run the code above in your browser using DataLab