To fix the issue that sf_cases object is different in different runs; when generating valid shapefiles from cases object pulled from taxonomy database, group by both location period id and location name since there are some location period id linked to more than one location name. In this case, all the observations with different location names linked to the same location period id will be able to be kept.
To fix the issue that sf_cases object is different in different runs; when generating valid shapefiles from cases object pulled from taxonomy database, group by both location period id and location name since there are some location period id linked to more than one location name. In this case, all the observations with different location names linked to the same location period id will be able to be kept.