Hi, I'm running the below code. I believe it comes from the Lahman library. For some reason it doesn't like my select statement. I get the error 'Error in select(., HR, BB, R) : unused arguments (HR, BB, R)'. Any ideas why? I have the following libraries loaded: Lahman, HistData, dplyr, tibble)
dat <- Teams %>% filter(yearID %in% 1961:2001 ) %>%
select(HR, BB, R)