R/size_distribution_and_outliers_control.R
size-distribution-and-outliers-control.Rd
'This script aims to visualise length distribtuion by species, year and ocean. It also gives for each species outliers lengths'
size_distribution_and_outliers_control(
data_connection,
start_year,
end_year,
start_year_stat,
end_year_stat,
start_year_catch_vs_sample,
end_year_catch_vs_sample,
program,
ocean,
country_code,
type,
path_file = NULL
)
list expected. Either output of the function postgresql_dbconnection, which must be done before using the size_distribution_and_outliers_control
integer expected. Starting year for the samples to control.
integer expected. Ending year for the samples to control.
integer expected. Starting year to calculate the mean median and quantiles.
integer expected. Ending year to calculate the mean median and quantiles.
integer expected. Starting year to compare sample to catch size distribution.
integer expected. Ending year to compare sample to catch size distribution.
character expected. Programs to be controlled. Example of the format for a program topiaid: "fr.ird.referential.ps.common.Program#1239832686262#0.31033946454061234"
character expected. Ocean to be controlled. Examples: 'Indian', 'Atlantic'...etc.
character expected. Countries on wich control will be made. Examples: 'FRA', 'MUS'...etc.
character expected. type of graph you want: count or density.
character expected. Path to save the final xlsx.
The function return histograms and xlsx tables.