Skip to content

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

@gcrone14

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions