Basic vector review (solution)

Exercise
Output solution
  1. How many sites are there?
[1] 26
  1. How many birds were counted at the 7th site?
[1] 30
  1. How many birds were counted at the last site?
[1] 32
  1. What is the total number of birds counted across all sites?
[1] 955
  1. What is the average number of birds seen on a site?
[1] 37
  1. What is the total number of birds counted on sites with codes beginning with C? (don’t just identify this sites by eye, in the real world there could be hundreds or thousands of sites)
[1] 248