Open bbest opened 1 year ago
See new function get_nearest_bottle()
here:
ISSUE: How to properly matching larval data to a location and time since 1999? \
Here are some of the files larvae_count
data without expected matches:
Problem was at least one bad merge (I didn't check further after that). I have not used rstudio online before but I stuck a chunk in to demonstrate beginning at line 176. I gave Marina some restructured data just before CalCOFI which she hasn't had a chance to convert to yet. With those changes, the sql will become much less painful and more intuitive (surrogate keys instead of composite primaries with, e.g., six fields for a net).
I really think we should also take a look at the Scripps CalCOFI db structure before we spend a lot of time on these queries. For example, having date and time as separate fields is really error-prone and also painful to program with here. I know Access doesn't have a datetime offset data type but Access shouldn't be the repository of these data anyway.
Should do a quick final check to make sure we're happy with the underlying data structure before we try to build too much more on top of it?
Look into this paper:
From Erica Mason: