Define two new variables in the `Teams` data frame from the `Lahman` package: batting average(BA) and slugging percentage(SLG). Batting average is the ratio of hits (H) to at-bats (AB), and slugging percentage is the total bases divided by at-bats. To compute total bases, you get 1 for a single, 2 for a double, 3 for a triple, and 4 for a home run.