NOAA-EDAB / survdat

https://noaa-edab.github.io/survdat/
https://noaa-edab.github.io/survdat/
Other
2 stars 1 forks source link

join with svbio table needs checking #1

Closed andybeet closed 3 years ago

andybeet commented 3 years ago

Results after joining survdat data with svbio table result in data being dropped.

eg. dogfish, SVSPP = 015 prior to 2001 are droppeed. should be records from 1992

data %>% dplyr::filter(YEAR < 2001, SVSPP =="015") %>% dplyr::distinct(YEAR)

slucey commented 3 years ago

Fixed. Problem was with a piece of code that assigned catchsex for pre-FSCS records (<2001). My old code used numbers while the new code was a character field.