Lookup Information for Players and Teams
playerInfo(playerID, nameFirst, nameLast, data = Lahman::People, extra = NULL, ...) teamInfo(teamID, name, data = Lahman::Teams, extra = NULL, ...)
playerID |
pattern for |
nameFirst |
pattern for first name |
nameLast |
pattern for last name |
data |
The name of the dataset to search |
extra |
A character vector of other fields to include in the result |
... |
other arguments passed to |
teamID |
pattern for |
name |
pattern for team name |
Returns a data frame for unique matching rows from data
Michael Friendly
grep
, ~~~
playerInfo("aaron") teamInfo("CH", extra="park")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.