checkStructureFile: Check the correct structure file of tallas_x_up SIRENO...

checkStructureFileR Documentation

Check the correct structure file of tallas_x_up SIRENO reports.

Description

Compare the correct number and name of the variables of a df with the structure in 'formato_variables' dataset in order to check the appropiate format.

Usage

checkStructureFile(df, file_type)

Arguments

df

df to check.

file_type

Type of df: "CATCHES", "CATCHES_IN_LENGTHS", "LENGTHS", "OAB_TRIPS", "OAB_HAULS", "OAB_CATCHES" or "OAB_LENGTHS".

Details

WARNING: the dataframe must be obtained from a read.table, read.csv or similar base function. I'ts not available to use after the import with importRIMCatches(), importRIMLengths(), importRIMCatchesInLengths()...

This function is called inside import SIRENO files functions like importRIMCatches(), importRIMLengths()...

Value

Two possible errors: 'The dataframe doesn't have the appropriate column names' or 'The data frame doesn't have the appropriate number of columns'. In case the structure is correct, doesn't return anything.


Eucrow/sapmuebase documentation built on April 17, 2024, 10:29 a.m.