lahman_search: Lahman SQLite database search

Description Usage Arguments Value Examples

Description

This function returns a queries from the Master table from the 2015 Lahman baseball database to assist in further queries.

Usage

1
2
lahman_search(playerID = NULL, nameFirst = NULL, nameLast = NULL,
  nameGiven = NULL, retroID = NULL, bbrefID = NULL)

Arguments

playerID

- Unique Lahman reference ID

nameFirst

- Player First Name

nameLast

- Player Last Name

nameGiven

- Player Given Name

retroID

- Unique Retrosheet reference ID

bbrefID

- Unique Baseball-Reference reference ID

Value

Dataframe of career batting statistics for playerID

Examples

1
2
3
4
5
lahman_search(nameFirst = "Robin")
lahman_search(nameLast = "Fielder")
lahman_search(nameGiven = "Russell Oles")
lahman_search(retroID = "molip001")
lahman_search(bbrefID = "yostne01")

mdlee12/sabr documentation built on May 22, 2019, 3:37 p.m.