LFD: Length Frequency Distribution

Description Usage Arguments Value Author(s) Examples

View source: R/LFD.R

Description

The function estimates for the selected sex the time series of the length frecency distribution (LFD)

Usage

1
LFD(merge_TATC, indices, sex, LC, depth_range, type)

Arguments

merge_TATC

data frame cantaining the hauls data (TA, table A) and the biological data (TC, table C) merged together

indices

data frame with the time series of the abundance indices as estimated by the function index.ts()

sex

string code of the selected sex. Permitted values: "c" (sex combined), "f" (females), and "m" (males).

LC

numerical value of the minimum length class interval (expressed in mm)

depth_range

vector of the depth range for the analysis

type

string value to select the type of graph to be plotted. Allowed values: "indices", "density" and "boxplot"

Value

the function returns a data frame in which the first column is the list of the lenght classes reported in the TC file and in the other columns are reported the abundance indices (n/km2) for each year of the time series by length class.

Author(s)

Walter Zupa

Examples

1
2
3
4
5
6
7
library(MEDITS)
merge_TATB <-  m.TATB(TA,TB,"ARISFOL")
merge_TATC <-  m.TATC(TA,TC,"ARISFOL")
GSA <- unique(TA$AREA)
indices <- index.ts(merge_TATB,GSA,"ARISFOL",index = "abundance",
depth_range=c(200,800),sex="f", sampling = "RSS",plot=FALSE)
LFD(merge_TATC,indices,sex="f",LC=1,depth_range=c(200,800), type = "indices")

MEDITS documentation built on Dec. 23, 2019, 1:06 a.m.