dbca-wa / wastdr

An R Client for the WA Sea Turtles and Strandings Database WAStD
https://dbca-wa.github.io/wastdr/
Other
3 stars 0 forks source link

download_wastd_turtledata: nest_excavations needs species from either TNE or AE #49

Closed florianm closed 3 years ago

florianm commented 3 years ago

nest_excavations can come from TNE or AE. Either have species.

Currently, WAStD joins plain Encounter details to the nest excavations API serializer. wastdr::download_wastd_turtledata then joins TNE (which brings species and other columns), but does not join AE. Nest excavations / egg counts coming from tagging (AE + tnexcav) therefore do not have species information. Simply joining AE and TNE to nest excav would duplicate species and other columns. We need to combine (bind_rows) tracks and animals before joining to Observations with plain Encounter serializers.