Consider the following vectors representing the number of field goals made and attempted by a basketball player in five games:

Field Goals Made: c(8, 7, 6, 9, 10,3) Field Goals Attempted: c(16, 13, 12, 13, 14,12)

Calculate the field goal percentage for each game and select the correct average field goal percentage for the five games.

FG <- c(8, 7, 6, 9, 10,3)
FGA <- c(16, 13, 12, 13, 14,12)
FG_pct <-(FG /FGA) * 100
FG_pct
## [1] 50.00000 53.84615 50.00000 69.23077 71.42857 25.00000
avgFG_pct <- mean(FG_pct)
avgFG_pct
## [1] 53.25092