Description Usage Arguments Value Author(s) See Also Examples
These functions use grep
to lookup information about players
(from the Master
file)
and teams (from the Teams
file).
1 2 3 |
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
, ~~~
1 2 3 | playerInfo("aaron")
teamInfo("CH", extra="park")
|
playerID nameFirst nameLast
2 aaronha01 Hank Aaron
3 aaronto01 Tommie Aaron
teamID name park
2 CH1 Chicago White Stockings Union Base-Ball Grounds
33 CH2 Chicago White Stockings 23rd Street Grounds
52 CHN Chicago White Stockings 23rd Street Grounds
133 CHU Chicago/Pittsburgh (Union League) <NA>
246 CHP Chicago Pirates <NA>
388 CHA Chicago White Sox South Side Park II
599 CHF Chicago Chi-Feds Wrigley Field
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.