You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Assignment 4, Exercise 5.4: Data Set no Longer Available #5
In Assignment 4, Exercise 5.4 asks us to consider a table composed by using the Master object from the Lahman package, but this object no longer exists: whenever I run data("Master", package = "Lahman"), I receive the warning: In data("Master", package = "Lahman") : data set ‘Master’ not found.
I looked it up and it appears that the data set that used to be called Master is now called People, so the correct code to run it in would be as follows:
data("People", package = "Lahman")
Master <- People
basehands <- with(Master, table(throws, bats))
MasterFielding <- data.frame(merge(Master, Fielding, by = "playerID"))
throwPOS <- with(MasterFielding, table(POS, throws))
Please let me know if this is correct, or if I am in error.
Thanks very much for finding this problem & diagnosing it.
Yeah, the tables in the Lahman package were re-named, b/c Sean Lahman renamed them in his source. People is more informative than Master (the main player table).
Activity
friendly commentedon Feb 1, 2026
Thanks very much for finding this problem & diagnosing it.
Yeah, the tables in the
Lahmanpackage were re-named, b/c Sean Lahman renamed them in his source.Peopleis more informative thanMaster(the main player table).I'll update the assignment description.