PIFSCstockassessments / ageproR

Prototype R package interface for AGEPRO (Age Structure Projection Model) using the JSON data format.
GNU General Public License v3.0
1 stars 0 forks source link

Empirical Recruitment JSON output #29

Closed efletcherPIFSC closed 9 months ago

efletcherPIFSC commented 10 months ago

Empirical recruitment JSON output lists it "recruits" values as a vertical column.

    "recruitData": [
      {
        "points": 8,
        "recruits": [
          [0],
          [0],
          [0],
          [0],
          [0],
          [0],
          [0],
          [0]
        ]
      }
    ]

"recruit" values are expected to be formatted as a JSON array

    "recruitlData":  [
     {
        "points": 8,
        "recruits": [0, 0, 0, 0, 0, 0, 0, 0]
        }
     ]

Dropping the index operator, returning "recruits" as a vector will resolve this.