create_length {RoME}R Documentation

Function to create the R-sufi file taille.

Description

This function reports the information contained in the biological data table (TC) from the MEDITS protocol to the format required by R-sufi (Rochet et al., 2004).

Usage

 create_length(ResultData,year,DataSpecies=RoME::TM_list,wd,save=TRUE)

Arguments

ResultData

Biological data table according to MEDITS protocol (TC)

year

reference year for the analysis

DataSpecies

TM_list reference list

wd

working directory path defined by the user

save

boolean value to save the results in a csv file

Details

For the file taille the change in maturity scale in 2006 has been taken into account: from 1994 to 2005 the males of crustaceans have stage NA, because they were not staged until 2005. From 2006 they are considered mature for the stages strictly greater than 2A as well as for females of crustaceans. Before 2006 the females of crustaceans are considered mature for stages strictly greater than 1. Bony fish and cephalopods are considered mature from stage 3 until 2005 and then they are considered mature from stage 2B. For selachians, the immature are always stage 1 and 2.

Value

The function saves by default in the files R-Sufi folder the table taille in.csv format, with suffix of the year and GSA. If save parameter is FALSE the function returns the data frame as output.

Author(s)

I. Bitetto, W. Zupa

References

Rochet M. J., V. M. Trenkel, J. A. Bertrand & J.-C. Poulard, 2004. R routines for survey based fisheries population and community indicators (R-SUFI). Ifremer, Nantes. Limited distribution. Anonymus. 2017. MEDITS-Handbook. Version n. 9. MEDITS Working Group. 106 pp.https://www.sibm.it/MEDITS 2011/principaledownload.htm

Examples

  ResultData = RoME::TC
  year=2012
  DataSpecies=RoME::TM_list
  wd <- tempdir()
  create_length(ResultData,year,DataSpecies,wd,save=FALSE)

[Package RoME version 0.1.23 Index]