Create R code for aggregating coral and algal cover

I chose the forereef habitat because this was the most affected habitat from the crown-of-thorns outbreak and the tropical cyclone.