Consider the following vectors representing the number of three-pointers made and attempted by a basketball player in five games: Three-Pointers Made: c(4, 5, 3, 6, 7) Three-Pointers Attempted: c(9, 10, 8, 11, 12) Calculate the three-point shooting percentage for each game and select the correct average three-point shooting percentage for the five games.
#analyzing 3 point attempts
X3PM<-c(4, 5, 3, 6, 7)
X3PA<-c(9, 10, 8, 11, 12)
x3PR<-(X3PM/X3PA)*100
x3PR
## [1] 44.44444 50.00000 37.50000 54.54545 58.33333
#displayed above is the efficiency for each game
x3PR[2]
## [1] 50
#in game 2 player accuary in 3PA is 50%