combo: Combo String

Description Usage Arguments Value Note See Also Examples

View source: R/combo.R

Description

Create a string that combines Reference Year, Species Code, and GSA.

Usage

1
combo(star, ...)

Arguments

star

STAR object, a list containing Metadata and TimeSeries.

...

optional strings to paste0 after the combo. See examples below.

Value

String in the format "STAR_2019_HKE_5" followed by optional strings passed by user.

Note

When a stock assessment covers multiple GSAs, they are combined in a compact format. For example GSA "8,9,10,11.1,11.2" becomes "891011".

See Also

append.id modifies the Assessment_ID of an existing STAR object.

lookup.species is a data frame containing species codes and names.

gsa.names converts comma-separated GSA codes to full GSA names.

gfcmSTAR-package gives an overview of the package.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

combo(star)

combo(star, ".xlsx")

combo(star, "_", star$Metadata$Assessment_Method)

## End(Not run)

gfcm/gfcmSTAR documentation built on Feb. 5, 2022, 2:14 p.m.