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

Some Surveys have values or 0s for num and num_cpue when they should have NA #47

Open
zoekitchel opened this issue May 2, 2024 · 4 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@zoekitchel
Copy link
Collaborator

zoekitchel commented May 2, 2024

Some surveys have values or 0s for num when they should have NA (aka no data exist, not that 0 were found).

Specifically:

  • GMEX
  • GOA
  • NEUS
  • AI
  • DFO (HS, QCS, SOG, WCHG, WCVI)
  • SEUS
  • WCANN
  • WCTRI
@zoekitchel zoekitchel self-assigned this May 2, 2024
@zoekitchel zoekitchel added the invalid This doesn't seem right label May 2, 2024
@zoekitchel
Copy link
Collaborator Author

zoekitchel commented May 3, 2024

This issue was created in step where duplicate observations were removed (line 189 in ai_clean.R). I didn't realize that the output of sum(c(NA,NA,NA,NA,NA,NA,NA), na.rm = T) is 0, and not NA.

@zoekitchel zoekitchel changed the title Alaska surveys have values or 0s for num and num_cpue when they should have NA Some Surveys have values or 0s for num and num_cpue when they should have NA May 4, 2024
@zoekitchel
Copy link
Collaborator Author

I have updated the code, files in FishGlob_data/outputs/Cleaned_data (SURVEY_data.Rdata) and cleaned google drive files (SURVEY_data.csv).

@zoekitchel
Copy link
Collaborator Author

Unfortunately, the standardization code for the NEUS would never run fully for me after multiple attempts, so the neus_std_clean.Rdata file in the repository has NOT yet been updated. This still needs to be done.

@AquaAuma
Copy link
Owner

is NEUS the only code that needs an update? I can try next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants