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

NEUS AREA column misinterpreted as numerical value #151

Open
zoekitchel opened this issue Oct 18, 2021 · 0 comments
Open

NEUS AREA column misinterpreted as numerical value #151

zoekitchel opened this issue Oct 18, 2021 · 0 comments

Comments

@zoekitchel
Copy link

I believe that the AREA column from the neus_season_svstra.csv files is being interpretted incorrectly. It refers to "Standard area code used for commercial data (New England Statistical Area Code) for the position of the beginning of the tow." as described in the metadata. However, in line 1532 of compile.R, this value is divided by 1000000, implying that it is being interpretted as m^2.

neus_fall <- neus_fall %>% mutate(stratum = as.double(stratum), latitude = as.double(lat), longitude = as.double(lon), depth = as.double(depth), wgt = as.double(wgt), year = as.double(year), haul_dur = as.numeric(TOWDUR), quarter = case_when(month %in% c(1,2,3) ~ 1, month %in% c(4,5,6) ~ 2, month %in% c(7,8,9) ~ 3, month %in% c(10,11,12) ~ 4), season = "Fall", SVSPP = as.double(SVSPP), area = AREA/1000000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant