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 1 year ago

efletcherPIFSC commented 1 year 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.