-
Notifications
You must be signed in to change notification settings - Fork 4
Assignment 4, Exercise 5.4: Data Set no Longer Available #5
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels