Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twentymill #32

Merged
merged 11 commits into from
Jun 26, 2024
Merged

Conversation

rosehartman
Copy link
Contributor

The 20mm survey got their 2021 and 2022 data up, and there were some minor format changes. I updated the code to account for new column names, and addition of a few stations.

Christina and I have also been taking a deep dive into lenght-weight regressions, and we think we should be using 0.25 instead of 0.1 to convert amphipod wet weight to dry weight.

Changed column names to match new data, updated cross walks with capitalized taxon names, added new station coordinates.
This is based on conversation with Christina and comparing results for taxa wehre we have both.
@rosehartman rosehartman requested a review from sbashevkin June 11, 2024 18:49
@rosehartman
Copy link
Contributor Author

Dang it, That test passed on my computer, I'll see what the problem is.

@rosehartman rosehartman marked this pull request as draft June 11, 2024 19:26
@rosehartman rosehartman marked this pull request as ready for review June 12, 2024 15:57
-"Dilution", -"SampleID", -"Datetime"),
names_to="twentymm_Meso", values_to="CPUE")%>% #transform from wide to long
dplyr::mutate(Turbidity = dplyr::coalesce(NTU, FNU)) %>% #NTU and FNU are close enough it's not a big deal to treat them as the same
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've heard wildly different opinions on this. For the water quality and fish integrated datasets, we've moved to separate columns for NTU and FNU ("TurbidityFNU", "TurbidityNTU"). Maybe we should do the same with zooper?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh. Sigh. I suppose you're probably right. I can make that change.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. I can make the change for the other surveys if it's too much trouble

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naw, I got it! All the other surveys use NTU, so it's just renaming them. I'm already halfway through testing the update.

@sbashevkin sbashevkin merged commit fc11a42 into InteragencyEcologicalProgram:master Jun 26, 2024
2 checks passed
@rosehartman rosehartman deleted the twentymill branch June 26, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants