ices-tools-prod / icesSAG

R interface to Stock Assessment Graphs database web services
http://sg.ices.dk/webservices.aspx
9 stars 7 forks source link

identify multiple advices obtained from getSAG() and get only the final advice #252

Open ChunChen001 opened 2 months ago

ChunChen001 commented 2 months ago

For some stocks multiple advices are given in one year (e.g. sole.27.4 with one "replaced" and one "Advice"). using icesSAG::getSAG(stock = "sol.27.4", year = 2023, data = "refpts", combine = FALSE, purpose = "Advice" ) gives two results. is there a way to get only the final Advice assessment? or you can add a column of "purpose" into the output list when data="refpts" so that i can identify which one is the final advice?