survey_acomps: Expand the age-composition data for a given survey

View source: R/survey_acomps.R

survey_acompsR Documentation

Expand the age-composition data for a given survey

Description

Expand age-composition data, which REQUIRES there to be ages. Default is marginal compositions but can do CAAL.

Usage

survey_acomps(sname, CAAL = FALSE, dir = "data-raw")

Arguments

sname

A character value giving the survey name.

CAAL

A logical if conditional-age-at-length compositions should be returned. The default is to return marginal age compositions instead.

dir

The upper directory where you would like the directories with the results returned from this function to be saved. The default is to use ⁠"data-raw". Survey-specific folders based on ⁠dirandsname' will be created.

Value

  • Ages

    1. csv files: unsexed and sexed comps for north and south

    2. Figures: sex ratio and size frequency for north and south

  • Ages CAAL

    1. csv files: sex-specific comps for north and south

    2. Figures: NA

Author(s)

Brian J. Langseth


iantaylor-NOAA/Lingcod_2021 documentation built on Oct. 30, 2024, 6:42 p.m.