From 51df77388bc2ccd92030f59b733fdc65d2ac2a92 Mon Sep 17 00:00:00 2001 From: "Joseph Caracappa (NOAA)" <57966543+jcaracappa1@users.noreply.github.com> Date: Fri, 23 Aug 2024 15:49:12 -0400 Subject: [PATCH] fixed wrong species attribution --- R/process_atl_output.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/process_atl_output.R b/R/process_atl_output.R index a49cb4e..6942e3d 100644 --- a/R/process_atl_output.R +++ b/R/process_atl_output.R @@ -817,7 +817,7 @@ process_atl_output = function(param.dir, s=1 for(s in 1:nrow(fgs)){ - spp.vars = grep(paste0('^',fgs$Code[s]),catch.varname,value =T) + spp.vars = grep(paste0('^',fgs$Code[s],'_'),catch.varname,value =T) if(length(spp.vars) == 0){next()}