format_catches: Format the data from the time-series of ICES historical,...

Description Usage Arguments Value Note References See Also Examples

View source: R/format_catches.R

Description

Format the data from the ICES Stock Assessment Database for the downloaded year and the specific Ecoregion for which you are producing the Fisheries Overviews.

Usage

1
2
format_catches(year, ecoregion, historical, official, preliminary = NULL,
  species_list, sid)

Arguments

year

the year required

ecoregion

an identifier of the Ecoregion of interest

historical

a dataframe output from load_historical_catches() required.

official

a dataframe output from load_official_catches() required.

preliminary

a dataframe output from load_preliminary_catches() optional.

species_list

a list of species common names and scientific names from ASFIS

sid

the main table from ICES Stock Information DB (SD)

Value

A data frame..

Note

Can add some helpful information here

References

The ICES stock information Database web sevices: http://sid.ices.dk/services/

See Also

format_sid for formatting raw data from the ICES Stock Information database.

icesFO-package gives an overview of the package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
  sid <- load_sid(2019)
  species_list <- load_asfis_species()
  historical <- load_historical_catches()
  official <- load_official_catches()
  preliminary <- load_preliminary_catches(2018)
  catches_format <- 
    format_catches(2019, "Celtic Seas", historical, official, preliminary,
                   species_list, sid)

## End(Not run)

ices-tools-prod/icesFO documentation built on Aug. 28, 2020, 2:33 p.m.