Added `macroinvertebrate` datasets to the set of records not being exported.  Most records show only "shell", these can use some more validating before upload.
Added `macroinvertebrate` datasets to the set of records not being exported.  Most records show only "shell", these can use some more validating before upload.

Added `tidyr` to the toolbox for packages.

I have to use `sampleID` to deal with some records that had multiple samples in the same analysis unit.

Added `element` modifiers `type`, `portion`, `symmetry` and `maturity` to the types of `organism` properties.  This required a set of `LEFT OUTER JOIN` statements.

Combining these into a semicolon separated list then used some regular expression searches & `unite` from `tidyr`.

Added the `UPA` flag for taxon group IDs.

Some records (in diatom datasets in particular) have some sort of weirdness where I'm finding fully duplicated records.  For now I'm going to error, then go back and figure it out.

I think this code could be cleaner still, but for now I'm happy.

NeotomaDB/DwC-Mapping,NeotomaDB/DwC-Mapping