Skip to content

Assignment 4, Exercise 5.4: Data Set no Longer Available #5

Open

Description

@gcrone14

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.

Activity

  1. friendly commented on Feb 1, 2026

    @friendly
    Owner

    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).

    I'll update the assignment description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions