R/check_raising_factor_inspector.R
check_raising_factor_inspector.Rd
The purpose of the check_raising_factor_inspector function is to provide a table of data that contains an inconsistency with the RF1 and the valid threshold (Default : 0.9 ; 1.1)
check_raising_factor_inspector(
dataframe1,
dataframe2,
dataframe3,
dataframe4,
output,
country_species = list(`1` = c("TUN", "ALB", "YFT", "BET", "SKJ"), `4` = c("LOT",
"TUN", "ALB", "YFT", "BET", "SKJ", "LTA", "FRI", "BLF", "RAV*", "KAW", "FRZ", "BLT")),
speciesfate = "6",
vesselactivity = c("23", "25", "27", "29"),
threshold = c(0.9, 1.1)
)
data.frame expected. Csv or output of the function data_extraction, which must be done before using the check_raising_factor_inspector () function.
data.frame expected. Csv or output of the function data_extraction, which must be done before using the check_raising_factor_inspector () function.
data.frame expected. Csv or output of the function data_extraction, which must be done before using the check_raising_factor_inspector () function.
data.frame expected. Csv or output of the function data_extraction, which must be done before using the check_raising_factor_inspector () function.
character expected. Kind of expected output. You can choose between "message", "report" or "logical".
character expected. Default values: list("1" = c("TUN", "ALB", "YFT", "BET", "SKJ"), "4" = c("LOT", "TUN", "ALB", "YFT", "BET", "SKJ", "LTA", "FRI", "BLF", "RAV*", "KAW", "FRZ", "BLT")). list of the inventory of species (FAO code) used to calculate catch weight in RF1 by country (country code).
character expected. Default values: "6". Vector of inventory of fate used to calculate catch weight in RF1.
character expected. Default values: c("23", "25", "27", "29"). Vector of inventory of vessel activity NOT used to calculate catch weight in RF1.
numeric expected. Default values: 0.9 and 1.1. Vector containing the lower and upper acceptable threshold for RF1.
The function returns a character with output is "message", a data.frame with output is "report", a logical with output is "logical"
The input dataframe must contain all these columns for the function to work :
trip_id
Dataframe 2:
catch_id
catch_weight
speciesfate_code
species_fao_code
vesselactivity_code
trip_id
Dataframe 3:
landing_id
landing_weight
species_fao_code
trip_id
Dataframe 4:
trip_id
trip_end_full_trip_id
vessel_id
country_fleetcountry