Function to sum rasters of species layers
sumRastersBySpecies(speciesLayers, layersToSum, filenameToSave, newLayerName)
A RasterStack
or RasterLayer
that
should contain species cover data in the study area
names/indices of layers to be summed - optional
file path to save output raster
name of the output raster layer