pfmc-assessments / PacFIN.Utilities

R code to manipulate data from the PacFIN database for assessments
http://pfmc-assessments.github.io/PacFIN.Utilities
Other
7 stars 2 forks source link

Unwanted ageing methods not being filter out by cleanPacFIN() #127

Open chantelwetzel-noaa opened 4 months ago

chantelwetzel-noaa commented 4 months ago

I was recently looking at data for sablefish and was exploring how cleanPacFIN() worked in terms of filtering out specific ageing methods. In this I noticed that surface reads (S) and mixed-reads (M) were being returned from the function even with the keep_age_method was specified to only retain break-and-burn (B) reads.

data <- PacFIN.Utilities::cleanPacFIN(
  Pdata = sablefish.bds,
  CLEAN = TRUE,
  keep_age_method = c("B"),
  verbose = TRUE)